wcsl_license_status_types

Description

apply_filters( 'wcsl_license_status_types',  array( $attributes ) )

Parameters (1) (array)

Sample

array( 
  'valid'       => __( 'Valid', $this->text_domain ), 
  'deactivated'   => __( 'Deactivated', $this->text_domain ), 
  'max_activations' => __( 'Max Activations reached', $this->text_domain ), 
  'invalid'     => __( 'Invalid', $this->text_domain ), 
  'inactive'      => __( 'Inactive', $this->text_domain ), 
  'active'      => __( 'Active', $this->text_domain ), 
  'expiring'      => __( 'Expiring', $this->text_domain ), 
  'expired'     => __( 'Expired', $this->text_domain )
)

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcsl_license_status_types',  array( $attributes ) );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcsl_license_status_types callback
function my_filter_function( $param ) {
  // do your thing here :-) ... 

  return $array_val;
}
add_filter( 'wcsl_license_status_types', 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcsl_license_status_types', '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 932
    return apply_filters( 'wcsl_license_status_types',  array(

filters

Updated on January 9, 2017

Was this article helpful?