Advertisement
Guest User

Untitled

a guest
Apr 11th, 2015
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. <?php
  2. // Lets declare the name of our child theme
  3. $themename = "micropoetry";
  4. function remove_admin_bar_links() {
  5.     global $wp_admin_bar;
  6.     $wp_admin_bar->remove_menu('new-content');
  7.     $wp_admin_bar->remove_menu('get-shortlink');
  8.     $wp_admin_bar->remove_menu('my-account-with-avatar');
  9. }
  10. add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );
  11. function ya_do_it_admin_bar_remove() {
  12.         global $wp_admin_bar;
  13.  
  14.         /* **edit-profile is the ID** */
  15.         $wp_admin_bar->remove_menu('edit-profile');
  16.  }
  17. add_filter('sidebar_login_widget_avatar_size','new_login_avatar_size');
  18. function new_login_avatar_size(){
  19.     return 70;
  20. }
  21.  
  22. //Remove Alizee contact methods
  23. function remove_alizee_contactmethods( $contactmethods ) {
  24.    unset($contactmethods['alizee_facebook']);
  25.    unset($contactmethods['alizee_twitter']);
  26.    unset($contactmethods['alizee_googleplus']);
  27.    unset($contactmethods['alizee_linkedin']);
  28.  
  29.    return $contactmethods;
  30. }
  31. add_filter( 'user_contactmethods', 'remove_alizee_contactmethods', 11, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement