get_calendar

This filter is documented in wp-includes/general-template.php.

Description

apply_filters( 'get_calendar', (unknown) $cache_key ); 

Parameters (1)

0. $cache_key (unknown)
The cache key.

Usage

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

Defined (3)

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

/include/widget-calendar.php  
  1. $output = apply_filters( 'get_calendar', $cache[ $key ] ); 
  1. echo apply_filters( 'get_calendar', $calendar_output ); 
  1. return apply_filters( 'get_calendar', $calendar_output );