Skip to content

Instantly share code, notes, and snippets.

@johnalarcon
Created January 30, 2019 09:26
Show Gist options
  • Save johnalarcon/182000894a74486ddee2376c7f2c2f20 to your computer and use it in GitHub Desktop.
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.
<?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