get_calendar_args

get_calendar_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('get_calendar_args') is found 1 times:

  • /wp-includes/general-template.php line 2294
    	 *     @type string $post_type Optional. Post type. Default 'post'.
    	 * }
    	 * @return array The arguments for the `get_calendar` function.
    	 */
    	$args = apply_filters( 'get_calendar_args', wp_parse_args( $args, $defaults ) );
    
    	if ( ! post_type_exists( $args['post_type'] ) ) {
    		$args['post_type'] = 'post';
    	}
    
    	$w = 0;