排序
删除Rank Math WordPress SEO插件中显示的:This XML Sitemap is generated by Rank Math WordPress SEO Plugin
在模板functions.php文件放入任意一段代码: /** * Filter to remove sitemap credit. * * @param boolean Defaults to false. */ add_filter( ‘rank_math/sitemap/remove_credit’, ‘__retur...
卸载删除“ Rank Math”插件时顺便清理数据库相关内容
在主题的functions.php文件中添加以下代码: /** * Filter to remove Rank Math data from the database */ add_filter( 'rank_math_clear_data_on_uninstall', '__return_true' ); 然后停用Ran...
让WordPress后台媒体库支持WebP格式图片上传和显示
将以下代码添加到当前主题的 functions.php //让 WordPress 支持 WebP 格式图片上传 function bzg_filter_mime_types( $array ) { $array['webp'] = 'image/webp'; return $array; } add_filter...
Rank Math SEO Filters and Hooks for Developers
Settings 1. Filter to add/remove tabs in Rank Math Metabox. Use this filter to add new tabs into the Meta Box added by Rank Math below every post/page in WordPress Editor. /** * Al...