Created
January 29, 2018 15:05
-
-
Save mrkkr/b1590394d5833f30532f96b6e3e46350 to your computer and use it in GitHub Desktop.
Ręcznie ustalenie dlugości znaków 'excerpt' postu #php
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 custom_excerpt_length( $length ) { | |
return 30; // limit znakóœ | |
} | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment