Add a new hooks registry class for static hooks.

This commit is contained in:
Vedanshu Jain 2024-09-11 13:35:12 +05:30
parent 2e69e94028
commit ea32e1ab8e
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
namespace Automattic\WooCommerce;
/**
* This class list and register core hooks for WooCommerce, without loading the file that contains the hooks. Classes that provides these hooks should be loaded by an Autoloader.
*/
class HooksRegistry {
static array $all_request_actions = array(
);
static array $all_request_filters = array(
);
static array $frontend_actions = array(
);
static array $frontend_filters = array(
);
static array $admin_actions = array(
);
static array $admin_filters = array(
);
}