WC_Products_Tracking::possibly_add_product_import_scripts
Adds the tracking scripts for product setting pages.
Метод класса: WC_Products_Tracking{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Products_Tracking = new WC_Products_Tracking(); $WC_Products_Tracking->possibly_add_product_import_scripts( $hook );
- $hook(строка) (обязательный)
- Page hook.
Код WC_Products_Tracking::possibly_add_product_import_scripts() WC Products Tracking::possibly add product import scripts WC 11.2.2
public function possibly_add_product_import_scripts( $hook ) {
$product_screen = $this->get_product_screen( $hook );
if ( 'import' !== $product_screen ) {
return;
}
WCAdminAssets::register_script( 'wp-admin-scripts', 'product-import-tracking', false );
}