Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/functions.php Secret
Last active May 28, 2019

Embed
What would you like to do?
<?php
/**
* Disable Genesis Customizer Redirect
* @see https://www.billerickson.net/disable-genesis-customizer-redirect
*/
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
You can’t perform that action at this time.