Created
August 2, 2017 16:51
-
-
Save Hexodus/9b04c393c547895069a62d958aacd606 to your computer and use it in GitHub Desktop.
Wordpress set custom excrept length in words.
This file contains hidden or 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 | |
//custom excrept length in words | |
add_filter( 'excerpt_length', function(){ return 40; }, 999 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment