Created
September 13, 2017 04:10
-
-
Save nefeline/1d302462e9bb2891e87a226c1a775c6e to your computer and use it in GitHub Desktop.
Change the events 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
<?php | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); | |
function custom_excerpt_length( $length ) { | |
return 300; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment