Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::init_hooks
Initialize the hooks used by the class.
Method of the class: CustomOrdersTableController{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->init_hooks();
CustomOrdersTableController::init_hooks() CustomOrdersTableController::init hooks code WC 10.3.3
private function init_hooks() {
add_filter( 'woocommerce_order_data_store', array( $this, 'get_orders_data_store' ), 999, 1 );
add_filter( 'woocommerce_order-refund_data_store', array( $this, 'get_refunds_data_store' ), 999, 1 );
add_filter( 'woocommerce_debug_tools', array( $this, 'add_hpos_tools' ), 999 );
add_filter( 'updated_option', array( $this, 'process_updated_option' ), 999, 3 );
add_filter( 'updated_option', array( $this, 'process_updated_option_fts_index' ), 999, 3 );
add_filter( 'pre_update_option', array( $this, 'process_pre_update_option' ), 999, 3 );
add_action( 'woocommerce_after_register_post_type', array( $this, 'register_post_type_for_order_placeholders' ), 10, 0 );
add_action( 'woocommerce_sections_advanced', array( $this, 'sync_now' ) );
add_filter( 'removable_query_args', array( $this, 'register_removable_query_arg' ) );
add_filter( 'get_edit_post_link', array( $this, 'maybe_rewrite_order_edit_link' ), 10, 2 );
add_action( 'before_woocommerce_init', array( $this, 'maybe_set_order_cache_group_as_non_persistent' ) );
}