wcpgsk_jquery_ui

The Woocommerce Poor Guys Swiss Knife wcpgsk jquery ui hook.

Description

Parameters (2)

0. $ajax_googleapis_com_ajax_libs_jqueryui_jquery_version_themes_smoothness_jquery_ui_css (string) => '//ajax.googleapis.com/ajax/libs/jqueryui/' . $jquery_version . '/themes/smoothness/jquery-ui.css'
The ajax googleapis com ajax libs jqueryui jquery version themes smoothness jquery ui css.
1. $plugins_url
The plugins url.

Usage

To run the hook, copy the example below.
  1. $ajax_googleapis_com_ajax_libs_jqueryui_jquery_version_themes_smoothness_jquery_ui_css = apply_filters( 'wcpgsk_jquery_ui', $ajax_googleapis_com_ajax_libs_jqueryui_jquery_version_themes_smoothness_jquery_ui_css, $plugins_url ); 
  2.  
  3. if ( !empty( $ajax_googleapis_com_ajax_libs_jqueryui_jquery_version_themes_smoothness_jquery_ui_css ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wcpgsk_jquery_ui callback 
  2. function filter_wcpgsk_jquery_ui( $ajax_googleapis_com_ajax_libs_jqueryui_jquery_version_themes_smoothness_jquery_ui_css, $plugins_url ) { 
  3. // make filter magic happen here... 
  4. return $ajax_googleapis_com_ajax_libs_jqueryui_jquery_version_themes_smoothness_jquery_ui_css
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wcpgsk_jquery_ui', 'filter_wcpgsk_jquery_ui', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wcpgsk_jquery_ui', 'filter_wcpgsk_jquery_ui', 10, 2 ); 

Defined (1)

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

/classes/woocommerce-poor-guys-swiss-knife.php  
  1. wp_enqueue_style( 'jquery-ui-style', apply_filters('wcpgsk_jquery_ui', '//ajax.googleapis.com/ajax/libs/jqueryui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', plugins_url('/assets/css/jquery-ui.css', $this->file) ), array(), '');