simcal_addon_status_<addon>

The Simple Calendar simcal addon status hook.

Description

apply_filters( 'simcal_addon_status_<addon>', (unknown) $simcal_get_license_status ); 

Parameters (1)

0. $simcal_get_license_status (unknown) => simcal_get_license_status( $this->addon )
The simcal get license status.

Usage

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

Defined (1)

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

/includes/admin/fields/license.php  
  1. $status = apply_filters( 'simcal_addon_status_' . $this->addon, simcal_get_license_status( $this->addon ) );