Filter: ep_enable_do_weighting

apply_filters( 'ep_enable_do_weighting', Whether, $weight_config, $args, $formatted_args ) → {bool}

Filter whether to enable weighting configuration

Parameters:
Name Type Description
Whether bool

to enable weight config, defaults to true for search requests that are public or REST

$weight_config array

Current weight config

$args array

WP Query arguments

$formatted_args array

Formatted ES arguments

Since:
  • 4.2.2
Source:
Returns:

Whether to use weighting configuration

Type
bool