acf/is_image_field, false, $field

acf/is_image_field, false, $field

Hook Type: filter

See hook in core

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

apply_filters('acf/is_image_field, false, $field') is found 1 times:

  • /includes/api/api-helpers.php line 3056
    		 *
    		 * @param bool  $is_image_field Whether the field only accepts image uploads.
    		 * @param array $field          The field array.
    		 */
    		return (bool) apply_filters( 'acf/is_image_field', false, $field );
    	}
    
    	$is_image_field = in_array( acf_maybe_get( $field, 'type', '' ), array( 'image', 'gallery' ), true );
    
    	/**
    	 * Filters whether the supplied field should be treated as an image field.