Skip to content

Commit

Permalink
Update functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyueerhao committed Mar 14, 2023
1 parent b04835f commit d10dd6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ function pk_update()
}

//添加文章修改时间提示
function wpb_last_updated_date( $content ) {
function pk_last_updated_date( $content ) {
$u_time = get_the_time('U');
$u_modified_time = get_the_modified_time('U');
$custom_content = '';
Expand All @@ -551,7 +551,7 @@ function wpb_last_updated_date( $content ) {
$custom_content .= $content;
return $custom_content;
}
add_filter( 'the_content', 'wpb_last_updated_date' );
add_filter( 'the_content', 'pk_last_updated_date' );


if (is_admin()) {
Expand Down

0 comments on commit d10dd6a

Please sign in to comment.