Documentation

s2_excerpt_on_words

Introduced in Version 11.5, this filter allows the excerpt to be generated on character count rather than words. This may be particularly useful for languages that use very few spaces the grammar construct – for example Japanese. By default written Excerpts are used first, content before an HTML <!–more–> tag second and the first 55 words of the main content as a final option. This filter alters the final option to use the first 55 characters instead of words. You can alter the length of the excerpt using the ‘s2_excerpt_length’ filter.

add_filter( 's2_excerpt_on_words', '__return_false' );

How can we help?

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We got your message

We will reply to you very soon :)