You appear to be a bot. Output may be restricted
Description
Registers the PayPal Standard settings for the PayPal Standard subsection
Usage
$array = register_gateway_settings( $gateway_settings );
Parameters
- $gateway_settings
- ( array ) required – Gateway tab settings
Returns
array Gateway tab settings with the PayPal Standard settings
Source
File name: easy-digital-downloads/includes/gateways/paypal/admin/settings.php
Lines:
1 to 65 of 65
function register_gateway_settings( $gateway_settings ) { $paypal_settings = array( 'paypal_settings' => array( 'id' => 'paypal_settings', 'name' => '<h3>' . __( 'PayPal Settings', 'easy-digital-downloads' ) . '</h3>', 'type' => 'header', ), 'paypal_documentation' => array( 'id' => 'paypal_documentation', 'name' => __( 'Documentation', 'easy-digital-downloads' ), 'desc' => documentation_settings_field(), 'type' => 'descriptive_text' ), 'paypal_connect_button' => array( 'id' => 'paypal_connect_button', 'name' => __( 'Connection Status', 'easy-digital-downloads' ), 'desc' => connect_settings_field(), 'type' => 'descriptive_text', 'class' => 'edd-paypal-connect-row' ), 'paypal_sandbox_client_id' => array( 'id' => 'paypal_sandbox_client_id', 'name' => __( 'Test Client ID', 'easy-digital-downloads' ), 'desc' => __( 'Enter your test client ID.', 'easy-digital-downloads' ), 'type' => 'text', 'size' => 'regular', 'class' => 'edd-hidden' ), 'paypal_sandbox_client_secret' => array( 'id' => 'paypal_sandbox_client_secret', 'name' => __( 'Test Client Secret', 'easy-digital-downloads' ), 'desc' => __( 'Enter your test client secret.', 'easy-digital-downloads' ), 'type' => 'password', 'size' => 'regular', 'class' => 'edd-hidden' ), 'paypal_live_client_id' => array( 'id' => 'paypal_live_client_id', 'name' => __( 'Live Client ID', 'easy-digital-downloads' ), 'desc' => __( 'Enter your live client ID.', 'easy-digital-downloads' ), 'type' => 'text', 'size' => 'regular', 'class' => 'edd-hidden' ), 'paypal_live_client_secret' => array( 'id' => 'paypal_live_client_secret', 'name' => __( 'Live Client Secret', 'easy-digital-downloads' ), 'desc' => __( 'Enter your live client secret.', 'easy-digital-downloads' ), 'type' => 'password', 'size' => 'regular', 'class' => 'edd-hidden' ), ); /** * Filters the PayPal Settings. * * @param array $paypal_settings */ $paypal_settings = apply_filters( 'edd_paypal_settings', $paypal_settings ); $gateway_settings['paypal_commerce'] = $paypal_settings; return $gateway_settings; }