Filter
rpress_core_stripe_settings
On this page
Filters the core Stripe gateway settings registered on the Gateways settings tab.
Runs when the Gateways settings are built, and only when core Stripe is available. The array is keyed by setting ID and includes the header, the self-hosted checkout checkbox and the test and live key fields. The result is stored as the stripe section of the gateway settings.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$stripe_settings | array | Setting definitions keyed by setting ID. |
Return value#
array. The setting definitions to register.
Example#
function my_stripe_settings( $stripe_settings ) {
$stripe_settings['my_stripe_note'] = array(
'id' => 'my_stripe_note',
'name' => __( 'Support', 'my-plugin' ),
'desc' => __( 'Contact support before changing these keys.', 'my-plugin' ),
'type' => 'descriptive_text',
);
return $stripe_settings;
}
add_filter( 'rpress_core_stripe_settings', 'my_stripe_settings' );
Source#
Applied in:
includes/gateways/stripe.php(line 278), inrpress_core_stripe_register_gateway_settings()
See also#
Was this page helpful?
