wooccm_pro_backend_scripts

The WooCommerce Checkout Manager wooccm pro backend scripts function.

Description

wooccm_pro_backend_scripts( $hook_suffix ); 

Parameters (1)

0. $hook_suffix
The hook suffix.

Usage

  1. if ( !function_exists( 'wooccm_pro_backend_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/woocommerce-checkout-manager.php'; 
  3.  
  4. // The hook suffix. 
  5. $hook_suffix = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wooccm_pro_backend_scripts($hook_suffix); 
  9.  

Defined (1)

The function is defined in the following location(s).

/woocommerce-checkout-manager.php  
  1. function wooccm_pro_backend_scripts( $hook_suffix ) { 
  2.  
  3. if ( $hook_suffix == 'toplevel_page_woocommerce-checkout-manager' ) { 
  4. wp_enqueue_style( 'farbtastic' ); 
  5. wp_enqueue_script( 'farbtastic', site_url('/wp-admin/js/farbtastic.js') );  
  6. wp_enqueue_style('wooccm-backend-css', plugins_url('woocommerce-checkout-manager/includes/pickers/css/backend_css.css') );  
  7. wp_enqueue_script( 'script_wccs', plugins_url( 'includes/templates/js/script_wccs.js', __FILE__ ), array( 'jquery' ), '1.2' ); 
  8. wp_enqueue_script( 'billing_script_wccs', plugins_url( 'includes/templates/js/billing_script_wccs.js', __FILE__ ), array( 'jquery' ), '1.2' ); 
  9. wp_enqueue_script( 'shipping_script_wccs', plugins_url( 'includes/templates/js/shipping_script_wccs.js', __FILE__ ), array( 'jquery' ), '1.2' ); 
  10.  
  11. if( !wp_script_is('jquery-ui-sortable', 'queue') ) { 
  12. wp_enqueue_script('jquery-ui-sortable'); 
  13.  
  14. if( $hook_suffix === 'woocheckout_page_wooccm-advance-export') { 
  15. wp_enqueue_style( 'export', plugins_url('woocommerce-checkout-manager/includes/classes/sc/export.css') ); 
  16.