Last active
February 21, 2022 18:33
-
-
Save tdmrhn/e8546e71f4ea6645f131580c50338072 to your computer and use it in GitHub Desktop.
Blocksy Comment Date Time Format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'get_comment_date', function ( $d ) { | |
$d = date_i18n(get_option( 'date_format' )); | |
return $d; | |
} ); | |
add_filter( 'get_comment_time', function ( $h ) { | |
$h = date_i18n(get_option( 'time_format' )); | |
return $h; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment