WordPress.org

Make WordPress Core

Changeset 38127


Ignore:
Timestamp:
07/21/2016 05:59:52 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct and expand the docs for the $post_type argument of wp_nav_menu_item_post_type_meta_box().

Props mehulkaklotar for initial patch.
See #37211.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/nav-menu.php

    r38051 r38127  
    298298 *
    299299 * @param string $object Not used.
    300  * @param string $post_type The post type object.
     300 * @param array $post_type {
     301 *     Data that will be used as arguments of the post type meta box.
     302 *
     303 *     @type string       $id       Meta box ID (used in the 'id' attribute for the meta box).
     304 *     @type string       $title    Title of the meta box.
     305 *     @type string       $callback Function that fills the box with the desired content.
     306 *     @type WP_Post_Type $args     The current post type object for this menu item meta box.
     307 * }
    301308 */
    302309function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
Note: See TracChangeset for help on using the changeset viewer.