Created
November 26, 2012 06:54
-
-
Save tobedoit/4146927 to your computer and use it in GitHub Desktop.
Wordpress: customize toolbar
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
/* Customize Toolbar ************************************************************************** | |
** http://www.sitepoint.com/change-wordpress-33-toolbar/ *********************************** */ | |
/* !어드민 툴바 커스트마이징 ******************************************************************** */ | |
add_action('admin_bar_menu', 'change_toolbar', 999); | |
function change_toolbar($wp_toolbar) { | |
/* 로고 제거 */ | |
$wp_toolbar->remove_node('wp-logo'); | |
/* 미디어 업로드 제거 */ | |
$wp_toolbar->remove_node('new-media'); | |
/* change 'Howdy,' */ | |
/* | |
$my_account=$wp_toolbar->get_node('my-account'); | |
$newtitle = str_replace( 'Howdy,', '상록수장학재단에 오신걸 환영합니다.', $my_account->title ); | |
$wp_toolbar->add_node( array( | |
'id' => 'my-account', | |
'title' => $newtitle, | |
) ); | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment