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 |
---|---|
1045 | /** |
1046 | * Filters the title of the default page template displayed in the drop-down. |
1047 | * |
1048 | * @since 4.1.0 |
1049 | * |
1050 | * @param string $label The display value for the default page template title. |
1051 | * @param string $context Where the option label is displayed. Possible values |
1052 | * include 'meta-box' or 'quick-edit'. |
1053 | */ |
1054 | $default_title = apply_filters( 'default_page_template_title', __( 'Default template' ), 'meta-box' ); |
1055 | ?> |
1056 | <option value="default"><?php echo esc_html( $default_title ); ?></option> |
1057 | <?php page_template_dropdown( $template, $post->post_type ); ?> |
1058 | </select> |
1059 | <?php endif; ?> |
1060 | <?php if ( post_type_supports( $post->post_type, 'page-attributes' ) ) : ?> |
1061 | <p class="post-attributes-label-wrapper menu-order-label-wrapper"><label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ); ?></label></p> |
1062 | <input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr( $post->menu_order ); ?>" /> |
1063 | <?php |