Make WordPress Core


Ignore:
Timestamp:
10/30/2013 03:44:32 PM (13 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/nav-menus.php.

Props pauldewouters for the intial patch.
Fixes #25528.

File:
1 edited

Legend:

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

    r25616 r25993  
    603603                </form>
    604604        </div><!-- #menu-locations-wrap -->
    605         <?php do_action( 'after_menu_locations_table' ); ?>
     605        <?php
     606        /**
     607         * Fires after the menu locations table is displayed.
     608         *
     609         * @since 3.6.0
     610         */
     611        do_action( 'after_menu_locations_table' ); ?>
    606612        <?php else : ?>
    607613        <div class="manage-menus">
     
    628634                                                                 $locations_assigned_to_this_menu[] = $locations[ $menu_location_key ];
    629635                                                        }
     636
     637                                                        /**
     638                                                         * Filter the number of locations listed per menu in the drop-down select.
     639                                                         *
     640                                                         * @since 3.6.0
     641                                                         *
     642                                                         * @param int $locations Number of menu locations to list. Default 3.
     643                                                         */
    630644                                                        $assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) ) );
    631645
Note: See TracChangeset for help on using the changeset viewer.