default_excerpt filter-hook . WP 1.5.0
Filters the default post excerpt initially used in the "Write Post" form.
Usage
add_filter( 'default_excerpt', 'filter_function_name_5726', 10, 2 ); function filter_function_name_5726( $post_excerpt, $post ){ // filter... return $post_excerpt; }
- $post_excerpt(string)
- Default post excerpt.
- $post(WP_Post)
- Post object.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
wp-admin/includes/post.php 752
$post->post_excerpt = (string) apply_filters( 'default_excerpt', $post_excerpt, $post );