Prevent update check for specific theme

I'm working on a custom theme that lives in varwwwhtmlwp-contentthemescustom. It's for internal use, so

I'm working on a custom theme that lives in /var/www/html/wp-content/themes/custom/. It's for internal use, so it doesn't matter if there's a theme with the same name on the wordpress site.

But wordpress performs an update check, finds a theme with the same name, which has a newer version number, and so asks me to upgrade.

Is there a way to suppress this behavior without renaming my theme and without fiddling with version numbers? I don't want the check to be performed at all.

(BTW define('AUTOMATIC_UPDATER_DISABLED', true) doesn't help.)

I'm working on a custom theme that lives in /var/www/html/wp-content/themes/custom/. It's for internal use, so it doesn't matter if there's a theme with the same name on the wordpress site.

But wordpress performs an update check, finds a theme with the same name, which has a newer version number, and so asks me to upgrade.

Is there a way to suppress this behavior without renaming my theme and without fiddling with version numbers? I don't want the check to be performed at all.

(BTW define('AUTOMATIC_UPDATER_DISABLED', true) doesn't help.)

Share Improve this question asked Dec 6, 2019 at 8:07 lonixlonix 3011 silver badge10 bronze badges 1
  • Did you find a way to disable the update check? – Paulo Coghi Commented Jun 23, 2020 at 17:28
Add a comment  | 

1 Answer 1

Reset to default 2

Yes, you can disable auto update by adding this line of code in your wp-config.php file:

define( 'WP_AUTO_UPDATE_CORE', false );

OR Disable automatic WordPress theme updates by adding the following filters in your functions.php

add_filter( 'auto_update_theme', '__return_false' );

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744933744a4601894.html

相关推荐

  • Prevent update check for specific theme

    I'm working on a custom theme that lives in varwwwhtmlwp-contentthemescustom. It's for internal use, so

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信