Created
May 20, 2013 15:25
-
-
Save wpspeak/5612936 to your computer and use it in GitHub Desktop.
/** Customize the length of excerpts */
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
<?php | |
/** Customize the length of excerpts */ | |
add_filter( 'excerpt_length', 'new_excerpt_length' ); | |
function new_excerpt_length( $length ) { | |
return 30; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment