Skip to content
Docs
Get RestroPress

Action

rpress_setup_wizard_step_saved

Updated
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#

ParameterTypeDescription
$stepstringWizard step slug.
$dataarrayRaw 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), in rpress_setup_wizard_save_step()

See also#

Was this page helpful?