diff --git a/includes/classes/Elasticsearch.php b/includes/classes/Elasticsearch.php index 527a35732d..ef2ec71eee 100644 --- a/includes/classes/Elasticsearch.php +++ b/includes/classes/Elasticsearch.php @@ -1151,13 +1151,16 @@ public function remote_request( $path, $args = [], $query_args = [], $type = nul * Filter intercepted request * * @hook ep_do_intercept_request + * @since 3.2.2 + * @since 4.0.0 added $type * @param {array} $request New remote request response * @param {array} $query Remote request arguments * @param {args} $args Request arguments * @param {int} $failures Number of failures + * @param {string} $type Type of request * @return {array} New request */ - $request = apply_filters( 'ep_do_intercept_request', new WP_Error( 400, 'No Request defined' ), $query, $args, $failures ); + $request = apply_filters( 'ep_do_intercept_request', new WP_Error( 400, 'No Request defined' ), $query, $args, $failures, $type ); } else { $request = wp_remote_request( $query['url'], $args ); // try the existing host to avoid unnecessary calls. }