Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author George Notaras

    (@gnotaras)

    Hi,

    Sorry for the late reply.

    This can be done by adding a function that filters the contactinfo fields in the functions.php file of your theme.

    function amt_remove_user_contact_fields( $contactmethods ) {
      unset($contactmethods['amt_facebook_author_profile_url']);
      // ...
      // ...
      return $contactmethods;
    }
    add_filter('user_contactmethods','amt_remove_user_contact_fields', 10, 1);

    The contact methods added by Add-Meta-Tags are:

    amt_facebook_author_profile_url
    amt_facebook_publisher_profile_url
    amt_googleplus_author_profile_url
    amt_googleplus_publisher_profile_url
    amt_twitter_author_username
    amt_twitter_publisher_username

    Removing them is untested, completely unsupported and only provided for informational purposes. ??

    George

    Thread Starter DLo978

    (@dlo978)

    Hey George –

    I appreciate the reply! I will give this a shot. The hack solution I was using was applying “display: none;” styles via CSS, but that took some tweaking as I accidentally knocked out some other fields. This sounds like a better solution.

    Thank you,

    Dennis

    Plugin Author George Notaras

    (@gnotaras)

    Hi Dennis,

    Maybe your solution with the CSS trick is by far better than the above. I haven’t tested the plugin after removing the contactinfo fields. Maybe there are errors etc.

    George

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suppress Extra Contact Info Fields added by AMT on User Editor Screen’ is closed to new replies.