post_date_column_time

過濾鉤子
apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode )
引數
  • (string) $t_time The published time.
    Required:
  • (WP_Post) $post Post object.
    Required:
  • (string) $column_name The column name.
    Required:
  • (string) $mode The list display mode ('excerpt' or 'list').
    Required:
定義位置
相關勾子
post_date_column_statusmedia_date_column_timepost_column_taxonomy_linksrest_delete_commentpost_type_archive_title
相關方法
get_post_datetimewp_update_commentexport_date_optionspost_type_archive_titlewp_update_term_countget_comment_time
引入
5.5.0
棄用
-

post_date_column_time: 這個鉤子允許你修改WordPress儀表盤上的文章管理螢幕上的文章日期列中使用的時間格式。你可以使用這個鉤子來改變時間格式,比如從24小時到12小時,或者新增自定義的時區。

過濾文章的釋出時間。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );
echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );
echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );

常見問題

FAQs
檢視更多 >