Automattic\WooCommerce\Internal\ProductAttributesLookup

LookupDataStore::init_hooks()privateWC 1.0

Initialize the hooks used by the class.

Method of the class: LookupDataStore{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->init_hooks();

LookupDataStore::init_hooks() code WC 8.7.0

private function init_hooks() {
	self::add_action( 'woocommerce_run_product_attribute_lookup_update_callback', array( $this, 'run_update_callback' ), 10, 2 );
	self::add_filter( 'woocommerce_get_sections_products', array( $this, 'add_advanced_section_to_product_settings' ), 100, 1 );
	self::add_action( 'woocommerce_rest_insert_product', array( $this, 'on_product_created_or_updated_via_rest_api' ), 100, 2 );
	self::add_filter( 'woocommerce_get_settings_products', array( $this, 'add_product_attributes_lookup_table_settings' ), 100, 2 );
}