How to Edit general-template.php Without Editing Core Files
-
Hi there,
I am trying to set up human time difference on my WordPress website, but in order to do so, I need to overwrite
echo apply_filters( 'the_time', get_the_time( $d ), $d );
withecho human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago';
in general-template.php.However, I do know that I should never edit core files. Therefore, I do have a child theme, and so I am wondering if anybody knows how I could possibly complete this action through either my child theme or some other way?
Thank you very much,
Julian M.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to Edit general-template.php Without Editing Core Files’ is closed to new replies.