woogool_slug

The WooCommerce Google product feed woogool slug hook.

Description

apply_filters( 'woogool_slug', (string) $product_woogool ); 

Parameters (1)

0. $product_woogool (string) => 'product_woogool'
The product woogool.

Usage

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

Defined (1)

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

/includes/pages.php  
  1. return apply_filters( 'woogool_slug', 'product_woogool' );