Automattic\WooCommerce\Internal
TermCount::init
Class initialization, executed when the class is resolved by the container.
Method of the class: TermCount{}
No Hooks.
Returns
null. Nothing (null).
Usage
$TermCount = new TermCount(); $TermCount->init(): void;
Changelog
| Since 11.2.0 | Introduced. |
TermCount::init() TermCount::init code WC 11.2.1
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 );
}