woocommerce_blueprint_upload_max_file_size filter-hookWC 9.3.0

Filters the maximum allowed file size for blueprint uploads.

Usage

add_filter( 'woocommerce_blueprint_upload_max_file_size', 'wp_kama_woocommerce_blueprint_upload_max_file_size_filter' );

/**
 * Function for `woocommerce_blueprint_upload_max_file_size` filter-hook.
 * 
 * @param int $max_size Maximum file size in bytes.
 *
 * @return int
 */
function wp_kama_woocommerce_blueprint_upload_max_file_size_filter( $max_size ){

	// filter...
	return $max_size;
}
$max_size(int)
Maximum file size in bytes.

Changelog

Since 9.3.0 Introduced.

Where the hook is called

RestApi::get_max_file_size()
woocommerce_blueprint_upload_max_file_size
woocommerce/src/Admin/Features/Blueprint/RestApi.php 50
return apply_filters( 'woocommerce_blueprint_upload_max_file_size', self::MAX_FILE_SIZE );

Where the hook is used in WooCommerce

Usage not found.