Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::init_hooks()
Initialize the hooks used by the class.
Метод класса: CustomOrdersTableController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->init_hooks();
Код CustomOrdersTableController::init_hooks() CustomOrdersTableController::init hooks WC 9.7.1
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_action( 'woocommerce_register_feature_definitions', array( $this, 'add_feature_definition' ) ); 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' ) ); }