Tuesday, 21 January 2014

WordPress: Remove/hide Google+ field from Contact Info on user admin page

This WordPress tweak is pretty unlikely to come up for most developers, but I was asked to remove the Google+ field from the Contact Info section of the User admin page. Here's a quick snippet to paste into functions.php to do so:

function custom_admin_js() {
  // hide WP's Googleplus input on user profile
  if( strpos($_SERVER["REQUEST_URI"], '/user-edit.php')) {
    echo '<script type="text/javascript"> jQuery(\'#your-profile input[name="googleplus"]\').parent().parent().hide(); </script>';
  }
}
add_action('admin_footer', 'custom_admin_js');

14 comments:

  1. I was eventually directed on the WordPress forum to te following post which helped me to pick out one specific category for a feed: psd to wordpress

    ReplyDelete
  2. Your post are inspiring. I hope you will write more such post. Each of your post brings a lot of good.
    Digital Marketing Course in Kolkata

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Nice post. Thanks for sharing! I want people to know just how good this information is in your article. It’s interesting content and Great work.
    Thanks & Regards,
    VRIT Professionals,
    No.1 Leading Web Designing Training Institute In Chennai.

    And also those who are looking for
    Web Designing Training Institute in Chennai
    SEO Training Institute in Chennai
    Photoshop Training Institute in Chennai
    PHP & Mysql Training Institute in Chennai
    Android Training Institute in Chennai

    ReplyDelete
  5. karena permainan ini sendiri memang memberikan tantangan besar karena anda bisa menjadi posisi Bandar di dalam meja. Namun tentunya anda harus memiliki chip yang cukup supaya bisa berperan sebagai Bandar di meja permainan.
    asikqq
    pionpoker
    dewaqq
    bandar ceme
    sumoqq
    hobiqq
    paito warna
    interqq
    forum prediksi

    ReplyDelete