at path:
ROOT
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
Brands.php
run:
R
W
Run
Abilities
DIR
2026-04-15 05:42:46
R
W
Run
AbilitiesApi
DIR
2026-04-15 05:42:46
R
W
Run
AddressProvider
DIR
2026-04-15 05:42:46
R
W
Run
Admin
DIR
2026-04-15 05:42:47
R
W
Run
Agentic
DIR
2026-04-15 05:42:38
R
W
Run
BatchProcessing
DIR
2026-04-15 05:42:47
R
W
Run
CLI
DIR
2026-04-15 05:42:38
R
W
Run
Caches
DIR
2026-04-15 05:42:47
R
W
Run
ComingSoon
DIR
2026-04-15 05:42:47
R
W
Run
CostOfGoodsSold
DIR
2026-04-15 05:42:47
R
W
Run
Customers
DIR
2026-04-15 05:42:47
R
W
Run
DataStores
DIR
2026-04-15 05:42:47
R
W
Run
DependencyManagement
DIR
2026-04-15 05:42:47
R
W
Run
Email
DIR
2026-04-15 05:42:47
R
W
Run
EmailEditor
DIR
2026-04-15 05:42:47
R
W
Run
Features
DIR
2026-04-15 05:42:47
R
W
Run
Integrations
DIR
2026-04-15 05:42:47
R
W
Run
Jetpack
DIR
2026-04-15 05:42:47
R
W
Run
Logging
DIR
2026-04-15 05:42:47
R
W
Run
MCP
DIR
2026-04-15 05:42:47
R
W
Run
Orders
DIR
2026-04-15 05:42:47
R
W
Run
ProductAttributesLookup
DIR
2026-04-15 05:42:47
R
W
Run
ProductDownloads
DIR
2026-04-15 05:42:38
R
W
Run
ProductFeed
DIR
2026-04-15 05:42:47
R
W
Run
ProductFilters
DIR
2026-04-15 05:42:47
R
W
Run
ProductImage
DIR
2026-04-15 05:42:47
R
W
Run
PushNotifications
DIR
2026-04-15 05:42:47
R
W
Run
ReceiptRendering
DIR
2026-04-15 05:42:47
R
W
Run
RestApi
DIR
2026-04-15 05:42:38
R
W
Run
Settings
DIR
2026-04-15 05:42:47
R
W
Run
StockNotifications
DIR
2026-04-15 05:42:47
R
W
Run
Traits
DIR
2026-04-15 05:42:47
R
W
Run
TransientFiles
DIR
2026-04-15 05:42:47
R
W
Run
Utilities
DIR
2026-04-15 05:42:47
R
W
Run
WCCom
DIR
2026-04-15 05:42:47
R
W
Run
AssignDefaultCategory.php
1.95 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
Brands.php
1.27 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
DownloadPermissionsAdjuster.php
6.52 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
McStats.php
2.1 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
OrderCouponDataMigrator.php
8.33 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
RegisterHooksInterface.php
504 By
2026-04-15 05:42:47
R
W
Run
Delete
Rename
RestApiControllerBase.php
8.01 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
RestApiParameterUtil.php
5.72 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
RestockRefundedItemsAdjuster.php
2.08 KB
2026-04-15 05:42:47
R
W
Run
Delete
Rename
error_log
up
📄
Brands.php
Save
<?php /** * Brands class file. */ declare( strict_types = 1); namespace Automattic\WooCommerce\Internal; defined( 'ABSPATH' ) || exit; /** * Class to initiate Brands functionality in core. */ class Brands { /** * Class initialization * * @internal */ final public static function init() { if ( ! self::is_enabled() ) { return; } include_once WC_ABSPATH . 'includes/class-wc-brands.php'; include_once WC_ABSPATH . 'includes/class-wc-brands-coupons.php'; include_once WC_ABSPATH . 'includes/class-wc-brands-brand-settings-manager.php'; include_once WC_ABSPATH . 'includes/wc-brands-functions.php'; if ( is_admin() ) { include_once WC_ABSPATH . 'includes/admin/class-wc-admin-brands.php'; } } /** * As of WooCommerce 9.6, Brands is enabled for all users. * * @return bool */ public static function is_enabled() { return true; } /** * If WooCommerce Brands gets activated forcibly, without WooCommerce active (e.g. via '--skip-plugins'), * remove WooCommerce Brands initialization functions early on in the 'plugins_loaded' timeline. */ public static function prepare() { if ( ! self::is_enabled() ) { return; } if ( function_exists( 'wc_brands_init' ) ) { remove_action( 'plugins_loaded', 'wc_brands_init', 1 ); } } }