Created
June 18, 2019 03:45
-
-
Save jasonyingling/919f8edd402f1215f77fae623371f71b to your computer and use it in GitHub Desktop.
Revisions
-
jasonyingling created this gist
Jun 18, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ /** * Adjust the reading time postfix. */ function my_custom_reading_time( $postfix, $time, $singular, $multiple ) { if ( $time == 1 ) { $postfix = 'minuta'; } elseif ( $time == 2 || $time == 3 || $time == 4 ) { $postfix = 'minuty'; } else { $postfix = 'minut'; } return $postfix; } add_filter( 'rt_edit_postfix', 'my_custom_reading_time', 10, 4 );