Skip to content

mc_excerpt_length

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Length of My Calendar generated excerpts in words. Default 55.

Auto-generated Example

add_filter(
   'mc_excerpt_length',
    function( int $num_words ) {
        // Your code here.
        return $num_words;
    }
);

Parameters

  • int $num_words Number of words to use.

Returns

int

Files

apply_filters( 'mc_excerpt_length', 55 )

← All Hooks

Clone this wiki locally