Disable WordPress upgrade prompt

Source: Internet
Author: User

Select the appropriate code as needed and put it in the functions. php file of the topic.

/* Remove the WordPress backend upgrade prompt * // 2.8 ~ 2.9: add_filter ('pre _ transient_update_core ', create_function (' $ A', "return NULL;"); // don't update coreadd_filter ('pre _ transient_update_plugins ', create_function ('$ A', "return NULL;"); // don't update pluginsadd_filter ('pre _ transient_update_themes', create_function ('$ A', "return NULL; "); // don't update themes // 3.0 ~ 3.1: add_filter ('pre _ site_transient_update_core ', create_function (' $ A', "return NULL;"); // don't update coreadd_filter ('pre _ site_transient_update_plugins ', create_function ('$ A', "return NULL;"); // don't update pluginsadd_filter ('pre _ site_transient_update_themes', create_function ('$ A', "return NULL; "); // don't update themes

First, because of my obsessive-compulsive disorder, every time I see updates in the background, I feel uncomfortable. Second, I think about it when I see an uncomfortable situation, the plug-in and system will be upgraded after the upgrade. This is because the theme is upgraded once, and all the settings of the maxcompute are gone. All gone ...... You have worked hard for a long time to optimize Seo. So if you have obsessive-compulsive disorder, add it to your favorites!

Note: update_core indicates system upgrade, update_plugins indicates plug-in upgrade, and update_themes indicates subject upgrade.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.