wordpress 编辑日期可以通过三种方法取消:1. 安装 Enable Post DAte Disable 插件;2. 在 functions.php 文件中添加代码;3. 手动编辑 wp_posts 表中的 post_modified 列。
WordPress 会自动为已发布的博客文章添加编辑日期。在某些情况下,您可能需要隐藏或取消此日期。以下是如何取消 WORDPRESS 编辑日期:
方法 1:使用插件
方法 2:使用代码
function remove_post_date( $dates ) { unset( $dates['modified'] ); return $dates; } add_filter( 'get_the_date', 'remove_post_date' );登录后复制
方法 3:手动编辑数据库
- 使用 phpmyadmin 或其他数据库管理工具连接到您的数据库。
- 找到 wp_posts 表并打开它。
- 找到 post_modified 列并更新其值为空。
- 保存更改。
备注: