benecaster_bridge_supports_manual_membership()
benecaster_bridge_supports_manual_membership( string $bridge_slug ): bool
Returns whether the specified bridge supports programmatic manual subscriber creation — the operation behind the “Add subscriber manually” admin action. Wraps the benecaster_bridge_supports_manual_membership filter with the correct NativeBridge-slug default so callers do not need to replicate the default logic themselves.
Returns true for benecaster_builtin without calling the filter when no overrides are registered. Returns false for all other bridge slugs unless a bridge add-on hooks the filter. Safe to call anywhere — no DB or API call is made.
Parameters
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
bridge_slug |
string |
— | Yes | Bridge slug to check (e.g. 'benecaster_builtin', 'memberpress', 'woo_subscriptions') |
Return Value
Type:
bool
true when the bridge identified by $bridge_slug advertises support for manual subscriber creation. Always true for 'benecaster_builtin'. false for all other slugs unless a bridge add-on hooks benecaster_bridge_supports_manual_membership to return true for its own slug.
Example
if ( benecaster_bridge_supports_manual_membership( $bridge_slug ) ) {
// show "Add subscriber manually" button
}
Hooks Fired
Need this built rather than just documented? See our services →