Register wizard setup page

Return Return

(string) The hook suffix of the setup wizard page ("admin_page_llms-setup"), or false if the user does not have the capability required.

Top ↑

Source Source

File: includes/admin/class.llms.admin.setup.wizard.php

	public function admin_menu() {

		 * Filter the WP User capability required to access and run the setup wizard.
		 * @since 3.0.0
		 * @param string $cap Required user capability. Default value is `install_plugins`.
		$cap = apply_filters( 'llms_setup_wizard_access', 'install_plugins' );

		$hook = add_dashboard_page( __( 'LifterLMS Setup Wizard', 'lifterlms' ), '', $cap, 'llms-setup', array( $this, 'output' ) );

		update_option( 'lifterlms_first_time_setup', 'yes' );

		return $hook;


Top ↑

Changelog Changelog

Version Description
4.4.4 Added dashboard page title.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.