Automattic\WooCommerce\Internal\DataStores\Orders

CustomOrdersTableController::init_hooks()privateWC 1.0

Initialize the hooks used by the class.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код CustomOrdersTableController::init_hooks() WC 6.6.1

private function init_hooks() {
	add_filter(
		'woocommerce_order_data_store',
		function ( $default_data_store ) {
			return $this->get_data_store_instance( $default_data_store );
		},
		999,
		1
	);

	add_filter(
		'woocommerce_debug_tools',
		function( $tools ) {
			return $this->add_initiate_regeneration_entry_to_tools_array( $tools );
		},
		999,
		1
	);

	add_filter(
		'woocommerce_get_sections_advanced',
		function( $sections ) {
			return $this->get_settings_sections( $sections );
		},
		999,
		1
	);

	add_filter(
		'woocommerce_get_settings_advanced',
		function ( $settings, $section_id ) {
			return $this->get_settings( $settings, $section_id );
		},
		999,
		2
	);

	add_filter(
		'updated_option',
		function( $option, $old_value, $value ) {
			$this->process_updated_option( $option, $old_value, $value );
		},
		999,
		3
	);

	add_filter(
		'pre_update_option',
		function( $value, $option, $old_value ) {
			return $this->process_pre_update_option( $option, $old_value, $value );
		},
		999,
		3
	);

	add_filter(
		DataSynchronizer::PENDING_SYNCHRONIZATION_FINISHED_ACTION,
		function() {
			$this->process_sync_finished();
		}
	);

	add_action(
		'woocommerce_update_options_advanced_custom_data_stores',
		function() {
			$this->process_options_updated();
		}
	);

	add_action(
		'woocommerce_after_register_post_type',
		function() {
			$this->register_post_type_for_order_placeholders();
		}
	);
}