jquery_wccs_emit

The WooCommerce Checkout Manager jquery wccs emit function.

Description

jquery_wccs_emit(); 

Usage

  1. if ( !function_exists( 'jquery_wccs_emit' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/woocommerce-checkout-manager.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jquery_wccs_emit(); 
  7.  

Defined (1)

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

/woocommerce-checkout-manager.php  
  1. function jquery_wccs_emit() { 
  2. global $woocommerce; 
  3. $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 
  4.  
  5. if( is_account_page() ) { 
  6. wp_enqueue_style('dashicons'); 
  7. wp_enqueue_style('wooccm-button-style', plugins_url( '/woocommerce-checkout-manager/includes/classes/file_upload/button_style.css'), false, '1.0', 'all'); 
  8.  
  9. if ( is_checkout() ) { 
  10. $current_language = ICL_LANGUAGE_CODE; 
  11.  
  12. if ( function_exists( 'icl_register_string' ) && ICL_LANGUAGE_CODE == $current_language && ICL_LANGUAGE_CODE !== 'en') { 
  13. wp_register_script('jquery.ui.datepicker-'.$current_language.'', plugins_url('woocommerce-checkout-manager/includes/pickers/di18n/jquery.ui.datepicker-'.$current_language.'.js', dirname(__FILE__))); 
  14. wp_enqueue_script('jquery.ui.datepicker-'.$current_language.''); 
  15.  
  16. wp_enqueue_script('jquery-ui-datepicker'); 
  17. wp_enqueue_style('jquery-style', plugins_url('woocommerce-checkout-manager/includes/pickers/jquery.ui.css') ); 
  18.  
  19.  
  20. // http://fgelinas.com/code/timepicker/ 
  21. wp_enqueue_script('jquery-ui-timepicker', plugins_url('woocommerce-checkout-manager/includes/pickers/jquery.ui.timepicker.js') ); 
  22. wp_enqueue_style('jquery-ui-timepicker', plugins_url('woocommerce-checkout-manager/includes/pickers/jquery.ui.timepicker.css') ); 
  23. wp_enqueue_style('jquery-ui-timepicker-min', plugins_url('woocommerce-checkout-manager/includes/pickers/include/ui-1.10.0/ui-lightness/jquery-ui-1.10.0.custom.min.css') ); 
  24.  
  25. wp_enqueue_script( 'jquery-lib', '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js' ); 
  26.  
  27. wp_enqueue_style( 'wp-color-picker' ); 
  28. wp_enqueue_script( 'iris', plugins_url('woocommerce-checkout-manager/includes/pickers/iris/dist/iris.js'), array( 'jquery-ui-draggable', 'jquery-ui-slider', 'jquery-touch-punch' ), false, 1 ); 
  29. wp_enqueue_script( 'wp-color-picker', admin_url( 'js/color-picker.min.js' ), array( 'iris' ), false, 1 ); 
  30.  
  31. // load the style and script for farbtastic 
  32. wp_enqueue_style( 'farbtastic' ); 
  33. wp_enqueue_script( 'farbtastic', site_url('/wp-admin/js/farbtastic.js') ); 
  34.  
  35.  
  36. wp_enqueue_style('dashicons'); 
  37.  
  38. wp_enqueue_style( 'magnific-popup', plugins_url('woocommerce-checkout-manager/includes/pickers/magnificpopup/dist/magnific-popup.css') ); 
  39. wp_enqueue_script( 'magnific-popup', plugins_url('woocommerce-checkout-manager/includes/pickers/magnificpopup/dist/jquery.magnific-popup.js') ); 
  40.  
  41. wp_enqueue_script( 'caman', plugins_url('woocommerce-checkout-manager/includes/pickers/caman/dist/caman.js') ); 
  42. wp_enqueue_style( 'caman', plugins_url('woocommerce-checkout-manager/includes/pickers/caman/dist/caman.css') ); 
  43.  
  44. wp_enqueue_script( 'jcrop-color', plugins_url('woocommerce-checkout-manager/includes/pickers/jcrop/js/jquery.color.js') ); 
  45. wp_enqueue_script( 'jcrop', plugins_url('woocommerce-checkout-manager/includes/pickers/jcrop/js/jquery.Jcrop.js') ); 
  46.