Make WordPress Core

Changeset 41763


Ignore:
Timestamp:
10/05/2017 12:54:22 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Introduce page_attributes_misc_attributes action that fires before the help hint text in the 'Page Attributes' meta box.

Props markcallen, MikeHansenMe.
Fixes #34034.

File:
1 edited

Legend:

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

    r41581 r41763  
    829829         *
    830830         * @param array   $dropdown_args Array of arguments used to generate the pages drop-down.
    831          * @param WP_Post $post          The current WP_Post object.
     831         * @param WP_Post $post          The current post.
    832832         */
    833833        $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post );
     
    876876<p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ); ?></label></p>
    877877<input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr( $post->menu_order ); ?>" />
     878<?php
     879/**
     880 * Fires before the help hint text in the 'Page Attributes' meta box.
     881 *
     882 * @since 4.8.0
     883 *
     884 * @param WP_Post $post The current post.
     885 */
     886do_action( 'page_attributes_misc_attributes', $post );
     887?>
    878888<?php if ( 'page' == $post->post_type && get_current_screen()->get_help_tabs() ) : ?>
    879889<p><?php _e( 'Need help? Use the Help tab above the screen title.' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.