i4w_excerpt
Usage
This filter hook enables you to apply your own methods to generate an excerpt.
Parameters
iMember360 will pass the following parameters to your filter function:
| Parameter | Description |
|---|---|
| $excerpt | The current excerpt as determined by content and settings. |
Example:
PHP
function my_i4w_excerpt($excerpt) {
// In this simple example, we trim the current excerpt
// and return it as upper case
return strtoupper(trim($excerpt));
}
add_filter('i4w_excerpt', 'my_i4w_excerpt', 10, 1);