Filter: ep_highlight_number_of_fragments

apply_filters( 'ep_highlight_number_of_fragments', $max_fragments, $field ) → {int}

Filter the maximum number of fragments highlighted for a searched field.

Parameters:
Name Type Description
$max_fragments int

Maximum number of fragments for field.

$field string

Search field being setup.

Since:
  • 4.7.2
Source:
Returns:

New maximum number of fragments to highlight for the searched field.

Type
int