acf/validate_attachment/type={$field[type]}

acf/validate_attachment/type={$field[type]}

Hook Type: filter

See hook in core

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

apply_filters('acf/validate_attachment/type={$field[type]}') is found 1 times:

  • /includes/api/api-helpers.php line 2999
    2995
    2996
    2997
    2998
    2999
    3000
    3001
    3002
    3003
    3004
    3005
    * @param   array $attachment An array of attachment data which differs based on the context.
    * @param   array $field The field array.
    * @param   string $context The curent context (uploading, preparing)
    */
    $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;