-
-
Save vanbernaert/f656b7cb7fdeed345f80 to your computer and use it in GitHub Desktop.
Add Estimated Post Reading Time in Genesis Framework
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 characters
<?php | |
//* Add Estimated Post Reading Time in Genesis Framework using Estimated Post Reading Time plugin | |
add_filter( 'genesis_post_info', 'afn_post_info_filter' ); | |
function afn_post_info_filter($post_info) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit] Estimated reading time: [est_time]'; | |
return $post_info; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment