Created
June 20, 2019 11:09
-
-
Save deeman/fc7147fb17c519491f13bd7fba0db0c8 to your computer and use it in GitHub Desktop.
Genesis Framework - Get old theme settings back
This file contains hidden or 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
| // Disable Genesis Theme Customizer Redirect | |
| //* Not tested in v.3.0.0 | |
| function be_disable_genesis_customizer_redirect() { | |
| global $_genesis_admin_settings, $_genesis_admin_seo_settings; | |
| $_genesis_admin_settings->redirect_to = '/wp-admin/admin.php?page=genesis&noredirect'; | |
| $_genesis_admin_seo_settings->redirect_to = '/wp-admin/admin.php?page=seo-settings&noredirect'; | |
| } | |
| add_action( 'genesis_admin_menu', 'be_disable_genesis_customizer_redirect', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment