Automattic\WooCommerce\Internal\DataStores\Orders

CustomOrdersTableController::init_hooks()privateWC 1.0

Initialize the hooks used by the class.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->init_hooks();

Код CustomOrdersTableController::init_hooks() WC 8.7.0

private function init_hooks() {
	self::add_filter( 'woocommerce_order_data_store', array( $this, 'get_orders_data_store' ), 999, 1 );
	self::add_filter( 'woocommerce_order-refund_data_store', array( $this, 'get_refunds_data_store' ), 999, 1 );
	self::add_filter( 'woocommerce_debug_tools', array( $this, 'add_hpos_tools' ), 999 );
	self::add_filter( 'updated_option', array( $this, 'process_updated_option' ), 999, 3 );
	self::add_filter( 'pre_update_option', array( $this, 'process_pre_update_option' ), 999, 3 );
	self::add_action( 'woocommerce_after_register_post_type', array( $this, 'register_post_type_for_order_placeholders' ), 10, 0 );
	self::add_action( 'woocommerce_sections_advanced', array( $this, 'sync_now' ) );
	self::add_filter( 'removable_query_args', array( $this, 'register_removable_query_arg' ) );
	self::add_action( 'woocommerce_register_feature_definitions', array( $this, 'add_feature_definition' ) );
}