Automattic\WooCommerce\Internal\Admin

CategoryLookup::init()publicWC 1.0

Init hooks.

Метод класса: CategoryLookup{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$CategoryLookup = new CategoryLookup();
$CategoryLookup->init();

Код CategoryLookup::init() WC 8.7.0

public function init() {
	add_action( 'generate_category_lookup_table', array( $this, 'regenerate' ) );
	add_action( 'edit_product_cat', array( $this, 'before_edit' ), 99 );
	add_action( 'edited_product_cat', array( $this, 'on_edit' ), 99 );
	add_action( 'created_product_cat', array( $this, 'on_create' ), 99 );
	add_action( 'init', array( $this, 'define_category_lookup_tables_in_wpdb' ) );
}