Support » Plugin: Autoptimize » Disable AO Update Notification

  • Resolved Amir

    (@repenter)


    Hi Franc 🙂
    As the latest working version on my website is 2.1.2 And I couldn’t figure out the problem of higher versions, is there any trick to disable ao update notification?

    Thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    what I usually do in that case is change the version string in the main PHP-file’s header B-)

    Thanks a lot Franc, I used this trick and it was successful:
    [ Moderated: Link redacted. ]

    • This reply was modified 9 months, 1 week ago by  t-p.
    Moderator t-p

    (@t-p)

    Side note to @repenter,
    Please show your “trick” here so others can benefit. Completely here, do not send people to your site as a reference. Thanks.

    Ah sure dear moderator, I thought I need to give credit to the website I used. Sorry about that.

    Here is the code anyway for disabling a plugin’s update. You need to put this in functions.php:

    This is a sample code for akismet plugin.

    /* Function which remove Plugin Update Notices – Askimet*/
    function disable_plugin_updates( $value ) {
       unset( $value->response['akismet/akismet.php'] );
       return $value;
    }
    add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    that indeed is a nice trick Amir, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable AO Update Notification’ is closed to new replies.