acf/validate_is_image_attachment/type={$field_type}, $errors, $file, $attachment, $field, $context

acf/validate_is_image_attachment/type={$field_type}, $errors, $file, $attachment, $field, $context

Hook Type: filter

See hook in core

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

apply_filters('acf/validate_is_image_attachment/type={$field_type}, $errors, $file, $attachment, $field, $context') is found 1 times:

  • /includes/api/api-helpers.php line 3163
    	$field_type = acf_maybe_get( $field, 'type', '' );
    	$field_name = acf_maybe_get( $field, '_name', '' );
    	$field_key  = acf_maybe_get( $field, 'key', '' );
    
    	$errors = apply_filters( "acf/validate_is_image_attachment/type={$field_type}", $errors, $file, $attachment, $field, $context );
    	$errors = apply_filters( "acf/validate_is_image_attachment/name={$field_name}", $errors, $file, $attachment, $field, $context );
    	$errors = apply_filters( "acf/validate_is_image_attachment/key={$field_key}", $errors, $file, $attachment, $field, $context );
    	$errors = apply_filters( 'acf/validate_is_image_attachment', $errors, $file, $attachment, $field, $context );
    
    	return $errors;
    }