mbr/excerpt
Usage
This filter hook enables you to modify an excerpt.
Parameters
Parameters | Description |
---|---|
$excerpt | The current excerpt as determined by content and settings. |
Examples
- Example 1
function my_mbr_excerpt($excerpt) {
// In this simple example, we trim the current excerpt
// and return it as upper case
return strtoupper(trim($excerpt));
}
add_filter('mbr/excerpt', 'my_mbr_excerpt',10,1);