Commit 50427c74 by rajshah

removed comments from single post

parent bcd30511
......@@ -392,3 +392,12 @@ function custom_rewrite_rules() {
);
}
add_action('init', 'custom_rewrite_rules');
// article read time
function calculate_reading_time($content)
{
$word_count = str_word_count(strip_tags($content));
$reading_speed = 200;
$reading_time = ceil($word_count / $reading_speed);
return $reading_time;
}
// !article read time
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment