LLMS_Admin_Setup_Wizard::admin_menu()
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.
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.4.4 | Added dashboard page title. |
3.0.0 | Introduced. |