Automattic\WooCommerce\Internal

RegisterHooksInterface{}interfaceWC 8.5.0

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();

No Hooks.

Usage

$RegisterHooksInterface = new RegisterHooksInterface();
// use class methods

Methods

  1. public register()

Changelog

Since 8.5.0 Introduced.

RegisterHooksInterface{} code WC 10.7.0

interface RegisterHooksInterface {

	/**
	 * Register this class instance to the appropriate hooks.
	 *
	 * @return void
	 */
	public function register();
}