yit_body_backgrounds

The YITH WooCommerce Wishlist yit body backgrounds hook.

Description

apply_filters( 'yit_body_backgrounds', (unknown) $self_config_body_backgrounds ); 

Parameters (1)

0. $self_config_body_backgrounds (unknown) => self::$_config['body_backgrounds']
The self config body backgrounds.

Usage

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

Defined (1)

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

/plugin-fw/lib/yit-plugin-common.php  
  1. self::$_config['body_backgrounds'] = apply_filters( 'yit_body_backgrounds', self::$_config['body_backgrounds'] );