Make WordPress Core

Changeset 15112


Ignore:
Timestamp:
06/02/2010 04:31:42 PM (14 years ago)
Author:
ryan
Message:

wp_get_nav_menus filter. Props filosofo. fixes #13702

File:
1 edited

Legend:

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

    r15111 r15112  
    396396    $defaults = array( 'hide_empty' => false, 'orderby' => 'none' );
    397397    $args = wp_parse_args( $args, $defaults );
    398     return get_terms( 'nav_menu',  $args);
     398    return apply_filters( 'wp_get_nav_menus', get_terms( 'nav_menu',  $args), $args );
    399399}
    400400
Note: See TracChangeset for help on using the changeset viewer.