Skip to content

Commit

Permalink
Merge pull request #3977 from 10up/barryceelen-patch-1
Browse files Browse the repository at this point in the history
Fix docblock for ep_formatted_args and ep_post_formatted_args
  • Loading branch information
felipeelia authored Sep 18, 2024
2 parents 3affc10 + 2ac8e6a commit 72e9dc0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions includes/classes/Indexable/Post/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -934,24 +934,24 @@ public function format_args( $args, $wp_query ) {
$formatted_args = $this->maybe_set_aggs( $formatted_args, $args, $filters );

/**
* Filter formatted Elasticsearch [ost ]query (entire query)
* Filter formatted Elasticsearch query (entire query)
*
* @hook ep_formatted_args
* @param {array} $formatted_args Formatted Elasticsearch query
* @param {array} $query_vars Query variables
* @param {array} $query Query part
* @return {array} New query
* @param {array} $args WP_Query variables
* @param {object} $wp_query WP_Query object
* @return {array} New query
*/
$formatted_args = apply_filters( 'ep_formatted_args', $formatted_args, $args, $wp_query );

/**
* Filter formatted Elasticsearch [ost ]query (entire query)
* Filter formatted Elasticsearch post query (entire query)
*
* @hook ep_post_formatted_args
* @param {array} $formatted_args Formatted Elasticsearch query
* @param {array} $query_vars Query variables
* @param {array} $query Query part
* @return {array} New query
* @param {array} $args WP_Query variables
* @param {object} $wp_query WP_Query object
* @return {array} New query
*/
$formatted_args = apply_filters( 'ep_post_formatted_args', $formatted_args, $args, $wp_query );

Expand Down

0 comments on commit 72e9dc0

Please sign in to comment.