benecaster_wizard_late_step_declined
Fires when the podcaster turns down a setup step an add-on requested after setup: Skip in the step, No thanks on the notice (once for each pending step), or closing the run part-way (once for the current step and once for each step after it).
Declining is permanent. The step is not offered on that show again, and calling benecaster_request_wizard_step() again does not reopen it. If your add-on needs a way back, offer one in its own settings.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$step_id |
string |
— | The step's `id`, as declared in `benecaster_setup_wizard_steps` |
$show_id |
int |
— | The show the step was declined for |
Example
add_action( 'benecaster_wizard_late_step_declined', function ( string $step_id, int $show_id ): void {
if ( 'my-addon-config' === $step_id ) {
// Show a "finish setup" link in your own settings for this show instead.
update_post_meta( $show_id, '_my_addon_setup_declined', 1 );
}
}, 10, 2 );
Need this built rather than just documented? See our services →