Created
January 30, 2019 09:26
-
-
Save johnalarcon/182000894a74486ddee2376c7f2c2f20 to your computer and use it in GitHub Desktop.
Filter examples for the Estimated Read Time plugin for ClassicPress. These code snips can be added to a functionality plugin or the functions.php file.
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 | |
// Define reading speed of your audience. 200 WPM is average; adjust to suit. | |
add_filter('codepotent_estimated_read_time_speed', 'codepotent_estimated_read_time_speed'); | |
function codepotent_estimated_read_time_speed($reading_speed) { | |
return 125; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment