• Resolved b-rad

    (@b-rad)


    I see that AMT adds several “contact info” options to every user’s profile now (e.g. Twitter author username (AMT), Facebook author profile URL (AMT), and Google+ author profile URL (AMT)). Can you add an option to disable or hide the “URLs of author profiles on social networks” fields?

    I can do with with a plugin and some jQuery or CSS, but since this plugin adds several fields to every user’s profile, it would be good to have an option to turn it off and disable it from within the plugin, rather than making the admin find a way to override it. Thanks.

    https://www.ads-software.com/plugins/add-meta-tags/

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

    (@gnotaras)

    Hi @b-rad

    Thanks for your feedback.

    These contact methods are added using filtering functions. To prevent them from being added to the user profiles, you can add the following in the functions.php file of the theme or in a custom plugin.

    remove_filter( 'user_contactmethods', 'amt_add_facebook_contactmethod', 10, 1 );
    remove_filter( 'user_contactmethods', 'amt_add_googleplus_contactmethod', 10, 1 );
    remove_filter( 'user_contactmethods', 'amt_add_twitter_contactmethod', 10, 1 );

    Please note that author profile URLs on social networks is considered core functionality of the plugin and removing them is not officially supported. The plugin has not undergone any testing with these contact fields removed, so please make sure to test it after the code snippet has been used. Please let me know if you notice any problems.

    BTW, these fields are added because WP does not provide standard fields for such contact methods. Adding these fields in the user profile is the only rational way to overcome the problem. If you have any other suggestions about this, they are very welcome.

    Kind Regards,
    George

    Thread Starter b-rad

    (@b-rad)

    Thanks for the fast reply. I wouldn’t think that hiding or removing the fields with JavaScript or CSS would cause any issues since that’s essentially the same as leaving them blank, however it would be nice to have an option within the plugin (since the plugins add them to the profile page) to disable/hide/remove etc. them.

    I’m able to handle this from my side, but I’m thinking of less savvy WordPress admins that don’t know (or like to) edit code and won’t make the changes you mentioned.

    I also recall that you were going to make an option to reduce or remove the HTML comments that are inserted around the meta tags (e.g. <!-- BEGIN Metadata added by the Add-Meta-Tags WordPress plugin -->). Did that option ever make it into the plugin and if so, where can I find it?

    Plugin Author George Notaras

    (@gnotaras)

    Hi,

    Hiding the fields using javascript should work fine. Also, removing the above filtering functions should work just fine as well. Please, let me know if you notice any problems.

    however it would be nice to have an option within the plugin (since the plugins add them to the profile page) to disable/hide/remove etc. them.

    This is core functionality and before adding an option to remove/hide it, there must be a reason that is valid enough to justify the addition of the new option. In this particular case, I do not really understand what the problem is, but provided a very simple workaround above. If you go ahead using the ‘custom plugin’ way, this is as simple as dropping a file in the plugins directory and activating the custom plugin. Unfortunately, less savvy WP admins would have to tolerate these fields or read the integrated help and explain what they are about to their editors.

    Did that option ever make it into the plugin and if so, where can I find it?

    Yes, this has been implemented. Please check the plugin options. More information can also be found in the plugin settings page, the changelog and the github issue tracker. Also, I must note that no matter how much I would like to be able to provide free support at this level about the implemented changes on a per user basis, my spare time does not let me. There is plenty of documentation, changes are recorded in the changelog in detail and much information can be found in this forum and the closed and open issues at Github. Thanks in advance for helping me focus on the development and maintenance tasks! ??

    Kind Regards,
    George

    Plugin Author George Notaras

    (@gnotaras)

    Also, I’m marking the topic as resolved. Please feel free to reopen it if there is more feedback about the aforementioned workarounds. Hope these help!

    George

    Plugin Author George Notaras

    (@gnotaras)

    Also, please don’t get me wrong about the addition of new options. I’m always open to suggestions about the removal of the AMT contact fields. I just need some justification so as to write about it in the accompanying help texts or integrated help and explain what problem it solves, while removing core functionality such as the profile URLs of authors on social networks.

    George

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide "URLs of author profiles on social networks" in profiles’ is closed to new replies.