Skip to main content

mbr/excerpt

Usage

This filter hook enables you to modify an excerpt.

Parameters

ParametersDescription
$excerptThe current excerpt as determined by content and settings.

Examples

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);