-
-
Save mihdan/44db461cacaf548f3ba8 to your computer and use it in GitHub Desktop.
Задать количество СЛОВ в цитате WordPress
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 | |
/** | |
* Plugin Name: Custom Excerpt Length | |
*/ | |
function custom_excerpt_length( $length ) { | |
return 10; | |
} | |
add_filter( 'excerpt_length', 'custom_excerpt_length' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment