get_bsearch_excerpt
Filter formatted string with search result exeerpt
Type: filter
Since: 3.0.0
Source: includes/general-template.php line 140
Parameters
| Type | Name | Description |
|---|---|---|
string | $output | Formatted excerpt |
WP_Post | $post | WP_Post instance. |
int | $excerpt_length | Length of the excerpt in words |
bool | $use_excerpt | Use post excerpt or content? |
string | $content | Content that is used to create the excerpt. |
Usage
add_filter( 'get_bsearch_excerpt', function($output, $post, $excerpt_length, $use_excerpt, $content) {
// ...
return $output;
} );