Automattic\WooCommerce\Internal\LegacyAssets
LegacySelect2UsageTracker::register
Register hook callbacks.
Method of the class: LegacySelect2UsageTracker{}
No Hooks.
Returns
void. Nothing (null).
Usage
$LegacySelect2UsageTracker = new LegacySelect2UsageTracker(); $LegacySelect2UsageTracker->register();
Changelog
| Since 11.0.0 | Introduced. |
LegacySelect2UsageTracker::register() LegacySelect2UsageTracker::register code WC 11.1.2
public function register() {
add_action( 'wp_print_footer_scripts', array( $this, 'handle_wp_print_footer_scripts' ), PHP_INT_MAX );
if ( WC_Site_Tracking::is_tracking_enabled() ) {
add_action( 'admin_print_footer_scripts', array( $this, 'handle_admin_print_footer_scripts' ), PHP_INT_MAX );
}
}