get_bsearch_excerpt
Filter formatted string with search result exeerpt
Type: filter
Since: 1.2
Source: includes/general-template.php line 140
Changelog
| Version | Description |
|---|---|
3.0.0 |
Added $content parameter |
1.2 |
Introduced. |
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;
} );