Ticket #33625: template_filter_docs.diff
File template_filter_docs.diff, 1.1 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/meta-boxes.php
789 789 if ( 'page' == $post->post_type && 0 != count( get_page_templates( $post ) ) && get_option( 'page_for_posts' ) != $post->ID ) { 790 790 $template = !empty($post->page_template) ? $post->page_template : false; 791 791 ?> 792 <p><strong><?php _e('Template') ?></strong></p> 792 <p><strong><?php _e('Template') ?></strong><?php 793 /** 794 * Filter the string inserted after the Template metabox label on the post editor. 795 * 796 * @since 4.4.0 797 * 798 * @param string $action The string to insert immediately after the Template label. 799 * @param string $template The template used for the current post. 800 */ 801 echo apply_filters( 'meta_box_template_action', '', $template ); 802 ?></p> 793 803 <label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template"> 794 804 <?php 795 805 /**