Snippets: Custom Excerpt Output

function my_custom_excerpt_output( $args ) {
    $output = get_the_excerpt();
    $args['custom_output'] = $output;
    return $args;
}
add_filter( 'wpex_excerpt_args',  'my_custom_excerpt_output' );

Snippet Type: PHP

Posted Under: Core

All PHP snippets should be added via a child theme's functions.php file.