Filter
rpress_core_stripe_extension_plugin_paths
On this page
Filters the plugin file paths used to detect the separate RestroPress Stripe extension.
Core Stripe is disabled when the Stripe extension is active. When no constant, class or function identifies the extension, the active plugin list is compared against this list of plugin basenames. Add a basename if your Stripe extension is installed under a different folder or file name.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$plugin_paths | array | Plugin basenames, by default restropress-stripe/restropress-stripe.php and rpress-stripe/rpress-stripe.php. |
Return value#
array. List of plugin basenames to match against active plugins.
Example#
function my_stripe_extension_paths( $plugin_paths ) {
$plugin_paths[] = 'my-rpress-stripe/my-rpress-stripe.php';
return $plugin_paths;
}
add_filter( 'rpress_core_stripe_extension_plugin_paths', 'my_stripe_extension_paths' );
Source#
Applied in:
includes/gateways/stripe.php(line 31), inrpress_core_stripe_extension_installed()
See also#
Was this page helpful?
