Change the excerpt length in Restrict Content Pro

Change the excerpt length in Restrict Content Pro on child sites.

Snippet Type

Execute on Child Sites

Snippet

function pw_rcp_custom_excerpt_length( $length ) {
	return 100; // Set length to 100 words
}
add_filter( 'rcp_filter_excerpt_length', 'pw_rcp_custom_excerpt_length' );