LLMS_Install::wizard_redirect()
Redirects users to the setup wizard
Contents
Return Return
(void)
Source Source
File: includes/class.llms.install.php
public static function wizard_redirect() {
if ( 'yes' === get_option( '_llms_first_time_setup_redirect', 'no' ) ) {
update_option( '_llms_first_time_setup_redirect', 'no' );
if ( ( ! empty( $_GET['page'] ) && in_array( $_GET['page'], array( 'llms-setup' ), true ) ) || is_network_admin() || isset( $_GET['activate-multi'] ) || apply_filters( 'llms_prevent_automatic_wizard_redirect', false ) ) {
return;
}
if ( current_user_can( 'install_plugins' ) ) {
wp_safe_redirect( admin_url() . '?page=llms-setup' );
exit;
}
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.2.0 | Use strict array comparison and wp_safe_redirect() in favor of wp_redirect(). |
| 3.0.0 | Unknown. |
| 1.0.0 | Introduced. |