default_excerpt WordPress Filter Hook
The default_excerpt Wordpress hook is a hook that is called when an excerpt is generated for a post. It allows for customization of the excerpt before it is displayed.
apply_filters( 'default_excerpt', string $post_excerpt , WP_Post $post ) #
Filters the default post excerpt initially used in the “Write Post” form.
Parameters
- $post_excerpt
(string)Default post excerpt.
- $post
(WP_Post)Post object.
Source
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |