acf/upload_prefilter

acf/upload_prefilter

Hook Type: filter

See hook in core

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

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

  • /includes/media.php line 113
    			 */
    			$errors = apply_filters( "acf/upload_prefilter/type={$field['type']}", $errors, $file, $field );
    			$errors = apply_filters( "acf/upload_prefilter/name={$field['_name']}", $errors, $file, $field );
    			$errors = apply_filters( "acf/upload_prefilter/key={$field['key']}", $errors, $file, $field );
    			$errors = apply_filters( 'acf/upload_prefilter', $errors, $file, $field );
    
    			// Append errors.
    			if ( ! empty( $errors ) ) {
    				$file['error'] = implode( "\n", $errors );
    			}