Created
March 5, 2012 06:03
-
-
Save TAKAyukiatkwsk/1976964 to your computer and use it in GitHub Desktop.
WordPress3.1.4で新規ユーザー作成時に管理バーを表示しない設定
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 | |
// 新規ユーザー作成時に管理バーを表示しない設定にする(WP3.1.4で確認) | |
function my_nodisplay_adminbarfront( $user_id ) { | |
update_user_meta( $user_id, 'show_admin_bar_front', 'false' ); | |
} | |
add_action( 'user_register', 'my_nodisplay_adminbarfront' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment