Created
April 16, 2014 22:05
-
-
Save geekish/10937748 to your computer and use it in GitHub Desktop.
Add Genesis "Theme Settings" page link to WordPress toolbar
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
<?php | |
//* Add Genesis "Theme Settings" to Toolbar | |
add_action( 'admin_bar_menu', 'genesis_adminbar_settings_link', 999 ); | |
function genesis_adminbar_settings_link( $wp_admin_bar ) { | |
$args = array( | |
'id' => 'genesis_theme_settings', | |
'title' => 'Genesis Settings', | |
'href' => '/wp-admin/admin.php?page=genesis', | |
'parent' => 'site-name' | |
); | |
$wp_admin_bar->add_node( $args ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment