WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 2290 | * |
| 2291 | * @param array $args { |
| 2292 | * Optional. Arguments for the `get_calendar` function. |
| 2293 | * |
| 2294 | * @type bool $initial Whether to use initial calendar names. Default true. |
| 2295 | * @type bool $display Whether to display the calendar output. Default true. |
| 2296 | * @type string $post_type Optional. Post type. Default 'post'. |
| 2297 | * } |
| 2298 | */ |
| 2299 | $args = apply_filters( 'get_calendar_args', wp_parse_args( $args, $defaults ) ); |
| 2300 | |
| 2301 | if ( ! post_type_exists( $args['post_type'] ) ) { |
| 2302 | $args['post_type'] = 'post'; |
| 2303 | } |
| 2304 | |
| 2305 | $w = 0; |
| 2306 | if ( isset( $_GET['w'] ) ) { |
| 2307 | $w = (int) $_GET['w']; |
| 2308 | } |