Created
April 21, 2017 15:02
-
-
Save congthien/175a6f1ae0b7a4aacbe86109152c179b to your computer and use it in GitHub Desktop.
change excerpt
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
remove_filter('excerpt_more', 'onepress_custom_excerpt_length'); | |
function wpdocs_custom_excerpt_length( $length ) { | |
return 10; | |
} | |
add_filter( 'excerpt_length', 'wpdocs_custom_excerpt_length', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment