Support » Plugin: Remove noreferrer » Save the settings, even after deactivation?

  • Resolved Klaas Koopman

    (@inspired-media)


    Dear Plugin Creator,

    First of all; thank you very much for the plugin! WOrks like a charm.

    But I would like to add 1 functionality:
    Can I activate the plugin to remove the noreferrer and then deactivate the plugin, so that it keeps the noreferrer?

    I have also added this code in my functions.php for it:
    //This code removes noreferrer from your new or updated posts
    function my_targeted_link_rel($rel_values) {
    return ‘noopener’;
    }
    add_filter(‘wp_targeted_link_rel’, ‘my_targeted_link_rel’,999);

    I want to have as less plugins as possible and just need a onetime fix for this?

    Would love to hear from you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author gruz0

    (@gruz0)

    Plugin does not change existing content in your database. I thought about it before and also I have a task about similar request: https://github.com/gruz0/remove-noreferrer/issues/4, but I can’t guarantee that it will be implemented.

    I can check your code and return with feedback ASAP.

    Thread Starter Klaas Koopman

    (@inspired-media)

    That would be fantastic gruz0! Because I really need the noreferrer to be removed from all pages/posts (and stay removed) for affiliate marketing deal I have with a third party.

    Plugin Author gruz0

    (@gruz0)

    @inspired-media, what is the reason why don’t you want to have installed plugin? I think if you remove your noreferrer links once, then you will need to clean up all links in your future posts (if you decide publish new posts, for example). With the installed plugin you forget about your problems at all. 🙂

    Thread Starter Klaas Koopman

    (@inspired-media)

    @gruz0 I’ve heard that every plugin slows down the website AND can cause a security issue?

    Plugin Author gruz0

    (@gruz0)

    It is true, partially. If developer does not spent a lot of his time to check every textfield in the settings page, if he does not write automatical test cases for the plugin, it may be used to attack website.

    Thread Starter Klaas Koopman

    (@inspired-media)

    Okay thanks. I’ll keep the plugin for now then. Thank you for your time @gruz0, really appreciate it!

    Plugin Author gruz0

    (@gruz0)

    I am testing a new version of the plugin now 🙂
    I think it will be available in 2-3 days.

    Thread Starter Klaas Koopman

    (@inspired-media)

    @gruz0 great, what kind of changes can we expect?

    Plugin Author gruz0

    (@gruz0)

    * Remove noreferrer from “Text” and “Custom HTML” widgets
    * Do not modify content if links or noreferrer attributes are not found
    * Remove plugin settings on uninstall
    * Initialize plugin with default options on activation

    Thread Starter Klaas Koopman

    (@inspired-media)

    Sounds good, thanks in advance!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Save the settings, even after deactivation?’ is closed to new replies.