Last active
April 10, 2019 08:00
-
-
Save WordPress-Handbuch/1b5c69e4ec56f142082e2fb259f98019 to your computer and use it in GitHub Desktop.
Change WordPress excerpt length through the hook excerpt_lengt
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
function wh_set_excerpt_length( $length ) { | |
return 150; | |
} | |
add_filter( 'excerpt_length', 'wh_set_excerpt_length' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment