Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Admin Page Redirection After WordPress Theme Activated
* 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

This comment has been minimized.

Copy link

two-points commented Dec 31, 2017

Thank you for the code.

Is it allowed in the theme on Will theme reviewer allow such redirection?

Nilesh G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.