Changeset 28207 for trunk/src/wp-admin/includes/nav-menu.php
- Timestamp:
- 04/25/2014 06:13:15 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/nav-menu.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)