Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
get_the_modified_date() - 检索最后一次修改文章的日期 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / get_the_modified_date()

get_the_modified_date( string $format = '', int|WP_Post $post = null ): string|int|false

检索最后一次修改文章的日期


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 4 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "1eb1c6a1b1d64fca20620178efd0ef14" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "22aef6d9180ca90659f3155388d3a11f" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "da3fa25e51008d111052e4f7cd1619a4" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

datemore...

modified

themore...


参数

$formatstring可选
PHP日期格式。默认为'date_format'选项。

默认:''

$postint|WP_Post可选
Post ID或WP_Post对象。默认当前文章。

默认:null


返回

string|int|false 修改当前文章的日期。失败时为false。


钩子



源码

查看源码 官方文档


更新日志

版本描述
4.6.0添加了$post参数。
2.1.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194