woogool_subtab_menu_url

The WooCommerce Google product feed woogool subtab menu url hook.

Description

apply_filters( 'woogool_subtab_menu_url', (unknown) $url, (unknown) $woogool_page_slug, (unknown) $tab, (unknown) $sub_tab ); 

Parameters (4)

0. $url (unknown)
The url.
1. $woogool_page_slug (unknown) => woogool_page_slug()
The woogool page slug.
2. $tab (unknown)
The tab.
3. $sub_tab (unknown)
The sub tab.

Usage

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

Defined (1)

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

/includes/function.php  
  1. return apply_filters( 'woogool_subtab_menu_url', $url, woogool_page_slug(), $tab, $sub_tab );