Created
May 15, 2017 06:27
-
-
Save rajendra89/a41e42b4b60bbedfb5f240e93ccff4bf to your computer and use it in GitHub Desktop.
Change the Excerpt Length
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
function excerpt_length_example( $words ) { | |
return 15; | |
} | |
add_filter( 'excerpt_length', 'excerpt_length_example' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment