Created
November 1, 2016 16:05
-
-
Save cmg-jess/cf33a3140e292c48ba883eb6c704e57d to your computer and use it in GitHub Desktop.
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
// add a link to the WP Toolbar | |
function custom_toolbar_link($wp_admin_bar) { | |
$args = array( | |
'id' => 'acf-theme-options', | |
'title' => 'Theme Options', | |
'href' => '/wp-admin/admin.php?page=theme-general-settings', | |
'meta' => array( | |
'class' => 'acf-theme-options', | |
'title' => 'Theme Options' | |
) | |
); | |
$wp_admin_bar->add_node($args); | |
} | |
add_action('admin_bar_menu', 'custom_toolbar_link', 999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment