Automattic\WooCommerce\Internal

TermCount::init │ public │ WC 11.2.0

Class initialization, executed when the class is resolved by the container.

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

Хуков нет.

Возвращает

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

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

$TermCount = new TermCount();
$TermCount->init(): void;

Список изменений

С версии 11.2.0 Введена.

Код TermCount::init() WC 11.2.2

final public function init(): void {
	add_action( 'set_object_terms', array( $this, 'handle_set_object_terms' ), 10, 6 );
	add_action( 'deleted_term_relationships', array( $this, 'handle_deleted_term_relationships' ), 10, 3 );
}