Created
July 8, 2018 07:36
-
-
Save steveobbayi/49a26e8424d472396c8d57046fd41abc to your computer and use it in GitHub Desktop.
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
/* Custom Excerpt length */ | |
function my_excerpt_length( $length ) { | |
return 20; | |
} | |
add_filter( 'excerpt_length', 'my_excerpt_length', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment