benecaster_wizard_late_step_completed
Fires when a setup step an add-on requested with benecaster_request_wizard_step() is completed for a show, after setup was already finished. Fires once for each step and show.
Completion is recorded for that show only. The site-wide benecaster_wizard_step_{id}_complete option is not written, so this action, or your own data, is how to tell that a show has finished your step.
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 completed for |
Example
add_action( 'benecaster_wizard_late_step_completed', function ( string $step_id, int $show_id ): void {
if ( 'my-addon-config' === $step_id ) {
update_post_meta( $show_id, '_my_addon_setup_done', 1 );
}
}, 10, 2 );
Need this built rather than just documented? See our services →