Last active
August 3, 2020 15:43
-
-
Save wp-seopress/4ae4b6870679bd7f42c75b03fe143fe4 to your computer and use it in GitHub Desktop.
Filter excerpt length (or beginning of post content) in metas
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 sp_excerpt_length($html) { | |
| //default: 50 words | |
| $html = 100; | |
| return $html; | |
| } | |
| add_filter('seopress_excerpt_length', 'sp_excerpt_length'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment