Action
rpress_setup_wizard_step_saved
On this page
Fires after a setup wizard step has been saved.
Runs in rpress_setup_wizard_save_step() after the step handler succeeded and the step is marked complete. The step slugs are store, services, hours, delivery, payments, menu and test. Saving the test step also marks the wizard as launched. It does not fire when a step is skipped or the save returns an error.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$step | string | Wizard step slug. |
$data | array | Raw unslashed step data. |
Example#
function my_setup_wizard_step_saved( $step, $data ) {
if ( 'payments' === $step ) {
update_option( 'my_payments_step_saved_at', time() );
}
}
add_action( 'rpress_setup_wizard_step_saved', 'my_setup_wizard_step_saved', 10, 2 );
Source#
Fired from:
includes/features/setup-wizard/functions.php(line 226), inrpress_setup_wizard_save_step()
See also#
Was this page helpful?
