acf/fields/relationship/query

acf/fields/relationship/query

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.3.5

apply_filters('acf/fields/relationship/query') is found 1 times:

  • /includes/fields/class-acf-field-relationship.php line 218
    				$args['post__in'] = array( $options['include'] );
    			}
    
    			// filters
    			$args = apply_filters( 'acf/fields/relationship/query', $args, $field, $options['post_id'] );
    			$args = apply_filters( 'acf/fields/relationship/query/name=' . $field['name'], $args, $field, $options['post_id'] );
    			$args = apply_filters( 'acf/fields/relationship/query/key=' . $field['key'], $args, $field, $options['post_id'] );
    
    			// get posts grouped by post type
    			$groups = acf_get_grouped_posts( $args );