Want more timely Centmin Mod News Updates?
Become a Member

Wordpress Exclude a plugin from auto update

Discussion in 'Blogs & CMS usage' started by hkim, Mar 17, 2019 at 12:22 AM.

  1. hkim

    hkim New Member

    22
    2
    3
    Feb 14, 2019
    Ratings:
    +3
    Local Time:
    7:39 PM
    I have installed with option 22, which include auto updating of plugins in Wordpress. I have now issues with a new version of a plugin that creates conflicts with other vital plugins. So I want to disable auto updating of this plugin.

    How can I accomplish this?
     
  2. hkim

    hkim New Member

    22
    2
    3
    Feb 14, 2019
    Ratings:
    +3
    Local Time:
    7:39 PM
    I think I got it. This should work?

    crontab -e
    #0 */8 * * * sleep 186s ;/root/tools/wp_updater_psykolog.nu.sh >/dev/null 2>&1

    to disable updating of all plugins?
     
  3. eva2000

    eva2000 Administrator Staff Member

    38,511
    8,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,050
    Local Time:
    4:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    unfortunately only way is to right now manually editing your auto update cronjob script /root/tools/wp_updater_${vhostname}.sh where ${vhostname} is your domain name

    find line that says
    Code (Text):
    /usr/bin/wp plugin update --all --allow-root | tee .wpcli-status

    edit it to below as per wp plugin update | WordPress Developer Resources to add option --exclude=yourpluginname
    Code (Text):
    /usr/bin/wp plugin update --all --exclude=yourpluginname --allow-root | tee .wpcli-status
     
..