yith_wcwl_locate_template

The YITH WooCommerce Wishlist yith wcwl locate template hook.

Description

apply_filters( 'yith_wcwl_locate_template', (unknown) $plugin_path, (unknown) $path ); 

Parameters (2)

0. $plugin_path (unknown)
The plugin path.
1. $path (unknown)
The path.

Usage

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

Defined (2)

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

/includes/functions.yith-wcwl.php  
  1. return apply_filters( 'yith_wcwl_locate_template', $plugin_path, $path ); 
  1. return apply_filters( 'yith_wcwl_locate_template', $located, $path );