Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. // functions.php に記載
  3.  
  4. // 管理者のみにアップデート情報を表示
  5. function update_info_only_admin() {
  6. if(!current_user_can('administrator')) {
  7. remove_action('admin_notices', 'update_nag');
  8. }
  9. }
  10. add_action('admin_init', 'update_info_only_admin');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement