WordPress has a filter to change the length of the excerpt on your website. The excerpt_length filter helps you to do this. Mailster has a dedicated filter you can use.

Change the length of the excerpt in Mailster

Whenever you use an excerpt – either as a dynamic tag or with a static insertion – you can set the length with some code. We use the mailster_excerpt_length filter to change this value:

function my_mailster_custom_excerpt_length( $length ) {
    return 20;
}
add_filter( 'mailster_excerpt_length', 'my_mailster_custom_excerpt_length' );

This code changes the excerpt length to 20 words.

Tagged: