'taxonomy' => self::TAXONOMY,
'filter' => 'raw',
),
$setting_value );
array_splice( $menus,
$index,
( -1 ===
$index ? 0 : 1
), array
( $menu_obj ) );
} // Make sure the menu objects get re-sorted after an update/insert.
if ( !
$is_delete && !
empty( $args['orderby'
] ) ) { $menus =
wp_list_sort( $menus,
array
( $args['orderby'
] => 'ASC',
) );
} // @todo Add support for $args['hide_empty'] === true.
return $menus;
}