Display ‘min read’ for < 1 min posts
-
So i need to display “min read” even for the posts which have less than 1 min reading time, i have found the code for this in the plugin “rt-reading-time.php” file and below is the code, my question is how do i change the code to display “< 1 min read” instead of just “< 1” , i see i have to change the code in third line but if i do that when plugin update comes, it will be vanished, so is there a hook or filter for this which i can apply in my functions.php file to get the output ?
// If the reading time is 0 then return it as < 1 instead of 0.
if ( 1 > $this->reading_time ) {
$this->reading_time = __( ‘< 1’, ‘reading-time-wp’ );
} else {
$this->reading_time = ceil( $this->reading_time );
}return $this->reading_time;
}
The page I need help with: [log in to see the link]
- The topic ‘Display ‘min read’ for < 1 min posts’ is closed to new replies.