WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Amazon Link] Remove Amazon Link Affiliate IDs from profile page (2 posts)

  1. KingOfTheHill
    Member
    Posted 1 year ago #

    I'm using Amazon Link and noticed it added the option to add Amazon Link Affiliate ID's on the profile page. I'm also using Theme my Login and bacause of that, subscribers can also see this option and even add Amazon ID's trough te frontend of my website. How can I remove the option to add/edit Amazon Link Affiliate ID's on the profile page?

  2. paulstuttard
    Member
    Posted 1 year ago #

    Hi,

    I'm going to add this as an option in the next version of the Amazon Link plugin, however in the meantime (if you feel up to it!) you can edit the code to remove the options:

    See this post: http://wordpress.org/support/topic/using-localisation?replies=14#post-3430786

    Hi,

    In the file amazon.php in the function admin_menu()

    The last 4 lines add the user_options:

    add_action('show_user_profile', array($this, 'show_user_options') );        // Display User Options
             add_action('edit_user_profile', array($this, 'show_user_options') );        // Display User Options
             add_action('personal_options_update', array($this, 'update_user_options')); // Update User Options
             add_action('edit_user_profile_update', array($this, 'update_user_options'));// Update User Options

    Just comment them out / remove them.

    Paul

Topic Closed

This topic has been closed to new replies.

About this Topic