yit_<prefix_cpt><name>_args

The YITH WooCommerce Wishlist yit prefix cpt name args hook.

Description

apply_filters( 'yit_<prefix_cpt><name>_args', (unknown) $args, (unknown) $pt ); 

Parameters (2)

0. $args (unknown)
The args.
1. $pt (unknown)
The pt.

Usage

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

Defined (1)

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

/plugin-fw/lib/yit-cpt-unlimited.php  
  1. register_post_type( $post_type, apply_filters( 'yit_' . $this->_prefix_cpt . $name . '_args', $args, $pt ) ); // save the post type in post meta