wp_get_nav_menus filter. Props filosofo. fixes #13702
git-svn-id: http://svn.automattic.com/wordpress/trunk@15112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a161f9bdcd
commit
d4c5f9b0cd
|
@ -395,7 +395,7 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item
|
||||||
function wp_get_nav_menus( $args = array() ) {
|
function wp_get_nav_menus( $args = array() ) {
|
||||||
$defaults = array( 'hide_empty' => false, 'orderby' => 'none' );
|
$defaults = array( 'hide_empty' => false, 'orderby' => 'none' );
|
||||||
$args = wp_parse_args( $args, $defaults );
|
$args = wp_parse_args( $args, $defaults );
|
||||||
return get_terms( 'nav_menu', $args);
|
return apply_filters( 'wp_get_nav_menus', get_terms( 'nav_menu', $args), $args );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue