woocommerce_blueprint_upload_max_file_size хук-фильтрWC 9.3.0

Filters the maximum allowed file size for blueprint uploads.

Использование

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.

Список изменений

С версии 9.3.0 Введена.

Где вызывается хук

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 );

Где используется хук в WooCommerce

Использование не найдено.