Automattic\WooCommerce\Internal
RegisterHooksInterface{}
Interface RegisterHooksInterface
The following must be added at the end of the 'init_hooks' method in the 'WooCommerce' class for each class implementing this interface: $container->get( <full class name>::class )->register();
Хуков нет.
Использование
$RegisterHooksInterface = new RegisterHooksInterface(); // use class methods
Методы
- public register()
Список изменений
| С версии 8.5.0 | Введена. |
Код RegisterHooksInterface{} RegisterHooksInterface{} WC 10.9.1
interface RegisterHooksInterface {
/**
* Register this class instance to the appropriate hooks.
*
* @return void
*/
public function register();
}