Skip to main content
We are Brand SEO Beijing serving international business, your marketing partner, Contact us by mi@mgsh.com.cn

Website CMS version upgrade update function.php code

First, put the upgrade package in the designated location. If you can access other people's upgrade packages, you can also use other people's paths, such as our path, if the path exists.
 
//WordPress custom upgrade package starts
//add_filter('site_transient_update_core', function($value){
// foreach ($value->updates as &$update) {
// if($update->locale == 'zh_CN'){
// $update->download = 'https://www.mgsh.com.cn/wordpress-5.3-zh_CN.zip';
// $update->packages->full = 'https://www.mgsh.com.cn/wordpress-5.3-zh_CN.zip';
🇧🇷
🇧🇷
// return $value;
//});
//End of WordPress custom upgrade package

Back to Top