wp_handle_upload_prefilter

wp_handle_upload_prefilter

Appears in:
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: advanced-ads.1.15

apply_filters('wp_handle_upload_prefilter') is found 1 times:

  • /modules/import-export/classes/import.php line 521
     
    		$file = $_FILES['import'];
    
    		// determine if uploaded file exceeds space quota.
    		$file = apply_filters( "wp_handle_upload_prefilter", $file );
    
    		if ( ! empty( $file['error'] ) ) {
    			$this->messages[] = array( 'error', sprintf( __( 'Failed to upload file, error: <em>%s</em>', 'advanced-ads' ), $file['error'] ) );
    			return;
    		}
    
    

See this hook used in plugins: