Changeset 28207
- Timestamp:
- 04/25/2014 06:13:15 AM (11 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r28163 r28207 1175 1175 if ( ! empty( $_POST['item-object'] ) && isset( $items[$_POST['item-object']] ) ) { 1176 1176 $menus_meta_box_object = $items[ $_POST['item-object'] ]; 1177 /** 1178 * Filter a nav menu meta box object. 1179 * 1180 * @since 3.0.0 1181 * 1182 * @param object $menus_meta_box_object A nav menu meta box object, such as Page, 1183 * Post, Category, Tag, etc. 1184 */ 1177 1178 /** This filter is documented in wp-admin/includes/nav-menu.php */ 1185 1179 $item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object ); 1186 1180 ob_start(); -
trunk/src/wp-admin/includes/nav-menu.php
r27262 r28207 504 504 foreach ( $post_types as $post_type ) { 505 505 /** 506 * Filter whether a menu items meta box will be added for the current post type. 506 * Filter whether a menu items meta box will be added for the current 507 * object type. 507 508 * 508 * If a falsey value is returned instead of a post type object,509 * the post type menu items meta boxwill not be added.509 * If a falsey value is returned instead of an object, the menu items 510 * meta box for the current meta box object will not be added. 510 511 * 511 512 * @since 3.0.0 512 513 * 513 * @param object $post_type The post type object to be used as a meta box. 514 * @param object $meta_box_object The current object to add a menu items 515 * meta box for. 514 516 */ 515 517 $post_type = apply_filters( 'nav_menu_meta_box_object', $post_type ); … … 535 537 536 538 foreach ( $taxonomies as $tax ) { 537 /** 538 * Filter whether a menu items meta box will be added for the current taxonomy. 539 * 540 * If a falsey value is returned instead of a taxonomy object, 541 * the taxonomy menu items meta box will not be added. 542 * 543 * @since 3.0.0 544 * 545 * @param object $tax The taxonomy object to be used as a meta box. 546 */ 539 /** This filter is documented in wp-admin/includes/nav-menu.php */ 547 540 $tax = apply_filters( 'nav_menu_meta_box_object', $tax ); 548 541 if ( $tax ) {
Note: See TracChangeset
for help on using the changeset viewer.