wcsl_request_info_$this->slug

Description

apply_filters( 'wcsl_request_info_' . $this->slug, $request_info )

Parameters (1) (array)

Sample

$request_info[ 'slug' ]         = $this->slug; 
$request_info[ 'license_key' ]      = $this->license_details[ 'license_key' ]; 
$request_info[ 'domain' ]       = $this->domain; 
$request_info[ 'version' ]        = $this->version;

 

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcsl_request_info_' . $this->slug, $request_info );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter_wcsl_request_info_$this->slug callback
function my_filter_function( $param ) {
  // do your thing here :-) ... 

  return $array_val; 
}
add_filter( 'wcsl_request_info_'.$this->slug, 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcsl_request_info_'.$this->slug, 'my_filter_function', 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wcvendors-pro/includes/lib/class-wc-software-license-client.php line 337
    $request_info = apply_filters( 'wcsl_request_info_' . $this->slug, $request_info );

filters

Updated on January 9, 2017

Was this article helpful?