get_calendar

get_calendar

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.3

apply_filters('get_calendar') is found 2 times:

  • /wp-includes/general-template.php line 2333
    	$cache = wp_cache_get( 'get_calendar', 'calendar' );
    
    	if ( $cache && is_array( $cache ) && isset( $cache[ $key ] ) ) {
    		/** This filter is documented in wp-includes/general-template.php */
    		$output = apply_filters( 'get_calendar', $cache[ $key ], $args );
    
    		if ( $args['display'] ) {
    			echo $output;
    			return;
    		}
    
    
  • /wp-includes/general-template.php line 2588
    	 *     @type bool   $display   Whether to display the calendar output. Default true.
    	 *     @type string $post_type Optional. Post type. Default 'post'.
    	 * }
    	 */
    	$calendar_output = apply_filters( 'get_calendar', $calendar_output, $args );
    
    	if ( $args['display'] ) {
    		echo $calendar_output;
    		return;
    	}