Skip to main content

benecaster_bridge_promote_complete

Action Premium Since v1.0.0

Fires when the Promote to Bridge wizard run finishes, after all subscriber rows have been processed. This hook fires exactly once per run regardless of outcome — even if all rows errored.

The `$promoted`, `$skipped`, and `$errors` counts together account for the total number of subscribers in the input list. A skipped subscriber already exists in the target bridge. This is a Premium hook that only registers when a valid license is active.

Parameters

Name Type Default Description
$show_id int ID of the show
$target_bridge_slug string Slug of the target bridge the subscribers were promoted to
$promoted int Number of subscribers successfully promoted
$skipped int Number of subscribers skipped
$errors int Number of promotion errors

Examples

Email admin with promotion outcome

add_action( 'benecaster_bridge_promote_complete', function (
    int    $show_id,
    string $target_bridge_slug,
    int    $promoted,
    int    $skipped,
    int    $errors
): void {
    wp_mail(
        get_option( 'admin_email' ),
        'Promote to Bridge complete',
        "Bridge: {$target_bridge_slug}. Promoted: {$promoted}. Skipped: {$skipped}. Errors: {$errors}."
    );
}, 10, 5 );