Add a custom bridge card to the wizard Subscription step
Add-ons that provide a non-core subscription bridge inject their card into the wizard’s Subscription step. The slug must match the bridge’s get_plugin_slug() return value so POST /bridge/activate can resolve it. Only add entries when the underlying plugin is active — the wizard shows all returned options without its own detection step.
Code
<?php
add_filter( 'benecaster_setup_wizard_bridge_options', function ( array $options ): array {
if ( class_exists( 'MyMembershipPlugin' ) ) {
$options[] = [
'slug' => 'my-membership-plugin',
'name' => 'My Membership Plugin',
];
}
return $options;
} );