jetpack_relatedposts_filter_has_terms, $args[has_terms], $post_id
jetpack_relatedposts_filter_has_terms, $args[has_terms], $post_id
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('jetpack_relatedposts_filter_has_terms, $args[has_terms], $post_id') is found 1 times:
- /modules/related-posts/jetpack-related-posts.php line 1017
* * @param array $args['has_terms'] Array of terms associated to the Related Posts. * @param string $post_id Post ID of the post for which we are retrieving Related Posts. */ $args['has_terms'] = apply_filters( 'jetpack_relatedposts_filter_has_terms', $args['has_terms'], $post_id ); if ( ! empty( $args['has_terms'] ) ) { foreach ( (array) $args['has_terms'] as $term ) { if ( mb_strlen( $term->taxonomy ) ) { switch ( $term->taxonomy ) { case 'post_tag': $tax_fld = 'tag.slug';