Make WordPress Core

Changeset 34340


Ignore:
Timestamp:
09/20/2015 02:39:31 AM (9 years ago)
Author:
wonderboymusic
Message:

In page_attributes_meta_box(), add an action, 'page_attributes_meta_box_template' to allow callbacks to be performed and HTML to be inserted after the title of the Template section.

Props sgrant.
Fixes #33625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r34319 r34340  
    779779        $template = !empty($post->page_template) ? $post->page_template : false;
    780780        ?>
    781 <p><strong><?php _e('Template') ?></strong></p>
     781<p><strong><?php _e('Template') ?></strong><?php
     782    /**
     783     * Perform actions immediately after displaying the heading for the Template
     784     * section of the Page Attributes meta box.
     785     *
     786     * @since 4.4.0
     787     *
     788     * @param string $template The template used for the current post.
     789     */
     790    do_action( 'page_attributes_meta_box_template', $template );
     791?></p>
    782792<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
    783793<?php
Note: See TracChangeset for help on using the changeset viewer.