WordPress 编辑日期可以通过三种方法取消:1. 安装 Enable Post Date Disable 插件;2. 在 functions.php 文件中添加代码;3. 手动编辑 wp_posts 表中的 post_modified 列。

如何取消 WordPress 编辑日期
WordPress 会自动为已发布的博客文章添加编辑日期。在某些情况下,您可能需要隐藏或取消此日期。以下是如何取消 WordPress 编辑日期:
方法 1:使用插件
方法 2:使用代码
<code class="php">function remove_post_date( $dates ) {
unset( $dates['modified'] );
return $dates;
}
add_filter( 'get_the_date', 'remove_post_date' );</code>方法 3:手动编辑数据库
备注:
以上就是wordpress编辑日期怎么取消的详细内容,更多请关注php中文网其它相关文章!
全网最新最细最实用WPS零基础入门到精通全套教程!带你真正掌握WPS办公! 内含Excel基础操作、函数设计、数据透视表等
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号