编辑是因为我可能误解了这个问题。这个date_i18n
过滤器可能就是您想要的。
add_filter( \'date_i18n\', \'wwm_date_i18n\' );
function wwm_date_i18n( $d = \'\' ) {
return \'03-21-85 11:11 PM\';
}
图片或未发生:

原始答案:
WordPresspre_option_$option
过滤器将执行您想要的操作。
add_filter( \'pre_option_date_format\', \'wwm_date_format\' );
function wwm_date_format( $d = \'\' )
{
return \'m-d-y h:i A\';
}
任何时候
the_date()
或
get_the_date()
调用时,它们将使用此格式输出日期。