WordPress 登录可见评论代码

2020-11-14

打开主题正文模板文件single.php,找到类似的: if ( comments_open() || get_comments_number() ) : comments_template(); endif; 修改为 if ( is_us...


WordPress禁用前台搜索功能代码

2020-11-11

把下面代码复制到当前主题的 function.php 文件中 //禁用WordPress前台搜索功能 function disable_search( $query, $error = true ) { if (is_search...


WordPress 文章部分内容隐藏加密代码

2020-11-09

WordPress 实现隐藏加密文章部分内容,把下面的代码复制到当前主题的 functions.php 文件中。 // 输入密码查看文章内容 function password_protected_post($...


WordPress历史版本官方下载地址

2020-10-19

WordPress历史版本官方下载地址规律是https://wordpress.org/wordpress-版本.zip 像5.5.1版本地址的就是https://wordpress.org/wordpress-5.5.1.zip 5.5 Bran...