Callback for the excerpt_length filter to override the excerpt length.
Description
If themes or plugins filter the excerpt_length, we need to override the filter in the editor, otherwise the excerpt length block setting has no effect.Returns 101 (one more than the max block setting of 100) to ensure wp_trim_words can detect when trimming is needed and add the ellipsis.
Signature, return type and hooks compared across 2 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/blocks/post-excerpt.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.