Automattic\WooCommerce\Admin\Features\Blueprint

RestApi::get_max_file_size()protectedWC 1.0

Get maximum allowed file size for blueprint uploads.

Метод класса: RestApi{}

Хуки из метода

Возвращает

int. Maximum file size in bytes

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_max_file_size();

Код RestApi::get_max_file_size() WC 9.8.4

protected function get_max_file_size() {
	/**
	 * Filters the maximum allowed file size for blueprint uploads.
	 *
	 * @since 9.3.0
	 * @param int $max_size Maximum file size in bytes.
	 */
	return apply_filters( 'woocommerce_blueprint_upload_max_file_size', self::MAX_FILE_SIZE );
}