WC_Admin_Exporters::admin_scripts
Enqueue scripts.
Method of the class: WC_Admin_Exporters{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Admin_Exporters = new WC_Admin_Exporters(); $WC_Admin_Exporters->admin_scripts();
WC_Admin_Exporters::admin_scripts() WC Admin Exporters::admin scripts code WC 10.6.2
public function admin_scripts() {
$suffix = Constants::is_true( 'SCRIPT_DEBUG' ) ? '' : '.min';
$version = Constants::get_constant( 'WC_VERSION' );
wp_register_script( 'wc-product-export', WC()->plugin_url() . '/assets/js/admin/wc-product-export' . $suffix . '.js', array( 'jquery' ), $version );
wp_localize_script(
'wc-product-export',
'wc_product_export_params',
array(
'export_nonce' => wp_create_nonce( 'wc-product-export' ),
)
);
}