Make WordPress Core

Ticket #33625: template_filter_docs.diff

File template_filter_docs.diff, 1.1 KB (added by sgrant, 10 years ago)

Add docstring

  • src/wp-admin/includes/meta-boxes.php

     
    789789        if ( 'page' == $post->post_type && 0 != count( get_page_templates( $post ) ) && get_option( 'page_for_posts' ) != $post->ID ) {
    790790                $template = !empty($post->page_template) ? $post->page_template : false;
    791791                ?>
    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>
    793803<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
    794804<?php
    795805/**