plugin_text

The YITH WooCommerce Wishlist plugin text hook.

Description

apply_filters( 'plugin_text', (unknown) $urlencode ); 

Parameters (1)

0. $urlencode (unknown) => urlencode( get_option( 'yith_wcwl_socials_title' ) )
The urlencode.

Usage

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

Defined (2)

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

/includes/class.yith-wcwl-ui.php  
  1. $title = apply_filters( 'plugin_text', urlencode( get_option( 'yith_wcwl_socials_title' ) ) ); 
/includes/class.yith-wcwl-shortcode.php  
  1. $share_links_title = apply_filters( 'plugin_text', urlencode( get_option( 'yith_wcwl_socials_title' ) ) );