在 Microsoft Outlook 中检查和设置字符编码 在 Microsoft Outlook 中,选择“文件”&…
网站 CMS 版本升级更新function.php代码
首先先把升级包放到制定位置,如果可以访问别人的升级包,也可以用别人的路径,比如我们的路径,假如路径存在的话。
//WordPress 自定义升级包开始
//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;
//});
//WordPress 自定义升级包结束