Run post-setup initialisation when the wizard completes
Fires once when POST /benecaster/v1/wizard/complete is called. Use to seed default add-on settings for the new show, send a welcome notification, or trigger an external onboarding webhook. $show_id is the show created during the wizard (0 if none). This action fires once — not on every admin visit.
Code
<?php
add_action( 'benecaster_setup_wizard_completed', function ( int $show_id, string $bridge_slug ): void {
if ( $show_id === 0 ) {
return;
}
update_post_meta( $show_id, '_my_addon_setting', 'default_value' );
if ( 'memberpress' === $bridge_slug ) {
// MemberPress-specific initialisation.
}
}, 10, 2 );