Automattic\WooCommerce\Internal\Admin

CategoryLookup::init()publicWC 1.0

Init hooks.

Method of the class: CategoryLookup{}

No Hooks.

Return

null. Nothing (null).

Usage

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

CategoryLookup::init() code 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' ) );
}