Last active
February 16, 2023 17:20
-
-
Save kharissulistiyo/8392698 to your computer and use it in GitHub Desktop.
Admin Page Redirection After WordPress Theme Activated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WordPress snippet | |
* Admin page redirection | |
* Put this inside theme setup function | |
*/ | |
global $pagenow; | |
if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) { | |
wp_redirect(admin_url("themes.php?page=rundown-settings")); // Your admin page URL | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error and showing this message 'Sorry, you are not allowed to access this page.'. How to solve it? bro