Abilities
4 weeks ago
AbilitiesApi
7 months ago
AddressProvider
7 months ago
Admin
5 days ago
Agentic
7 months ago
Api
4 weeks ago
BatchProcessing
4 weeks ago
CLI
5 months ago
Caches
4 months ago
ComingSoon
9 months ago
CostOfGoodsSold
9 months ago
Customers
9 months ago
DataStores
4 weeks ago
DependencyManagement
5 months ago
Email
4 weeks ago
EmailEditor
4 weeks ago
Features
5 days ago
Integrations
7 months ago
Jetpack
5 months ago
Logging
2 months ago
MCP
4 weeks ago
OrderReviews
4 weeks ago
Orders
4 weeks ago
ProductAttributes
4 weeks ago
ProductAttributesLookup
4 weeks ago
ProductDownloads
5 months ago
ProductFeed
1 week ago
ProductFilters
4 weeks ago
ProductImage
1 year ago
PushNotifications
5 days ago
ReceiptRendering
2 months ago
RestApi
4 weeks ago
Settings
1 year ago
ShopperLists
2 weeks ago
StockNotifications
4 weeks ago
Traits
4 months ago
TransientFiles
4 weeks ago
Utilities
4 weeks ago
VariationGallery
4 weeks ago
WCCom
2 years ago
AssignDefaultCategory.php
1 year ago
Brands.php
11 months ago
DownloadPermissionsAdjuster.php
2 months ago
McStats.php
1 year ago
OrderCouponDataMigrator.php
1 year ago
RegisterHooksInterface.php
1 year ago
RestApiControllerBase.php
1 year ago
RestApiParameterUtil.php
2 years ago
RestockRefundedItemsAdjuster.php
2 months ago
RegisterHooksInterface.php
24 lines
| 1 | <?php |
| 2 | declare( strict_types=1 ); |
| 3 | |
| 4 | namespace Automattic\WooCommerce\Internal; |
| 5 | |
| 6 | /** |
| 7 | * Interface RegisterHooksInterface |
| 8 | * |
| 9 | * The following must be added at the end of the 'init_hooks' method in the 'WooCommerce' class |
| 10 | * for each class implementing this interface: |
| 11 | * $container->get( <full class name>::class )->register(); |
| 12 | * |
| 13 | * @since 8.5.0 |
| 14 | */ |
| 15 | interface RegisterHooksInterface { |
| 16 | |
| 17 | /** |
| 18 | * Register this class instance to the appropriate hooks. |
| 19 | * |
| 20 | * @return void |
| 21 | */ |
| 22 | public function register(); |
| 23 | } |
| 24 |