Created
May 27, 2017 11:19
-
-
Save rajendra89/2f31850ce0b15a16ef0fbaf0006de1d6 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