Skip to content
Docs
Get RestroPress

Filter

rpress_setup_wizard_checklist

Updated
On this page

Filters the launch checklist shown by the setup wizard.

Returned by rpress_setup_wizard_checklist(), which builds the list of what is set and what is still missing before launch. Each item has id, label, done, hint, and either step (the wizard step that fixes it) or url. Items added here appear in the checklist.

Parameters#

ParameterTypeDescription
$itemsarrayList of checklist items.

Return value#

array. The checklist items.

Example#

function my_setup_wizard_checklist( $items ) {
	$items[] = array(
		'id'    => 'my_policy_page',
		'label' => __( 'Privacy policy page published', 'my-plugin' ),
		'done'  => (bool) get_option( 'wp_page_for_privacy_policy' ),
		'hint'  => __( 'Required before taking orders.', 'my-plugin' ),
		'url'   => admin_url( 'options-privacy.php' ),
	);
	return $items;
}
add_filter( 'rpress_setup_wizard_checklist', 'my_setup_wizard_checklist' );

Source#

Applied in:

  • includes/features/setup-wizard/functions.php (line 906), in rpress_setup_wizard_checklist()

See also#

Was this page helpful?