Filter: ep_remote_request_add_ep_user_agent

apply_filters( 'ep_remote_request_add_ep_user_agent', $should_add_ep_version ) → {bool}

Filter the User Agent header when submitting requests to Elasticsearch.

Parameters:
Name Type Description
$should_add_ep_version bool

Whether the ElasticPress version should be added to the User Agent string.

Since:
  • 3.6.1
Source:
Returns:

New value

Type
bool