/* Add and Change Position of User Menu 2 */
add_filter('jnews_dropdown_link', 'jeg_nav_account_menu', 11);
function jeg_nav_account_menu($dropdown) {
if (is_user_logged_in()) {
$temp = $dropdown;
unset($dropdown['logout']);
/* Set the position under this code. */
$dropdown['new_menu'] = array( /* New Menu */
'text' => 'New Menu',
'url' => 'http://jnews.io'
);
$dropdown['new_menu2'] = array( /* New Menu 2 */
'text' => 'New Menu 2',
'url' => 'http://jnews.io'
);
$dropdown['custom_menu_1'] = array( /* New Menu 2 */
'text' => 'Writing tips',
'url' => home_url( '/' )
);
$dropdown['logout'] = $temp['logout']; /* Set Position of logout || Don't delete this initialization, just move the position */
/* Finish adjusting the Position */
return $dropdown;
}
}