代码: 全选
add_filter( 'TieLabs/post_date', 'tie_custom_code_post_date', 20 );
function tie_custom_code_post_date( $date ){
if( is_single() ){
return $date . '<span class="last-updated"> - '. esc_html__( 'Last Updated:', TIELABS_TEXTDOMAIN ) .' '. get_the_modified_date() .'</span>';
}
return $date;
}代码: 全选
.last-updated {
display: none !important;
}
#the-post .last-updated {
display: inline !important;
}