Automattic\WooCommerce\Internal\DataStores\Orders

CustomOrdersTableController::init_hooks()privateWC 1.0

Initialize the hooks used by the class.

Method of the class: CustomOrdersTableController{}

No Hooks.

Return

null. Nothing (null).

Usage

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

CustomOrdersTableController::init_hooks() code WC 8.6.1

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_initiate_regeneration_entry_to_tools_array' ), 999, 1 );
	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' ) );
}