{$action}_prefilter

{$action}_prefilter

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.4.1

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

  • /wp-admin/includes/file.php line 737
    	 * @since 4.0.0 Converted to a dynamic hook with `$action`.
    	 *
    	 * @param string[] $file An array of data for a single file.
    	 */
    	$file = apply_filters( "{$action}_prefilter", $file );
    
    	// You may define your own function and pass the name in $overrides['upload_error_handler'].
    	$upload_error_handler = 'wp_handle_upload_error';
    	if ( isset( $overrides['upload_error_handler'] ) ) {
    		$upload_error_handler = $overrides['upload_error_handler'];
    	}