{$action}_prefilter

{$action}_prefilter

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('{$action}_prefilter') is found 1 times:

  • /wp-admin/includes/file.php line 833
    	 *     @type int    $size     The size, in bytes, of the uploaded file.
    	 *     @type int    $error    The error code associated with this file upload.
    	 * }
    	 */
    	$file = apply_filters( "{$action}_prefilter", $file );
    
    	/**
    	 * Filters the override parameters for a file before it is uploaded to WordPress.
    	 *
    	 * The dynamic portion of the hook name, `$action`, refers to the post action.
    	 *