Last active
January 30, 2019 16:07
-
-
Save maksimerohin/a61c7ea897ed1de05fb9a167a132064e to your computer and use it in GitHub Desktop.
Задаёт размер цитаты.
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
function new_excerpt_length($length) { | |
return 25; | |
} | |
add_filter('excerpt_length', 'new_excerpt_length'); | |
add_filter('excerpt_more', function($more) { | |
return '...'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment