acf/validate_attachment

acf/validate_attachment

Hook Type: filter

See hook in core

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

apply_filters('acf/validate_attachment') is found 1 times:

  • /includes/api/api-helpers.php line 3018
    3014
    3015
    3016
    3017
    3018
    3019
    3020
    3021
    3022
    3023
    3024
        */
        $errors = apply_filters( "acf/validate_attachment/type={$field['type']}", $errors, $file, $attachment, $field, $context );
        $errors = apply_filters( "acf/validate_attachment/name={$field['_name']}", $errors, $file, $attachment, $field, $context );
        $errors = apply_filters( "acf/validate_attachment/key={$field['key']}", $errors, $file, $attachment, $field, $context );
        $errors = apply_filters( 'acf/validate_attachment', $errors, $file, $attachment, $field, $context );
     
        // return
        return $errors;
    }
     
    /**