Here is an example for sorting a menu item add_filter('ap_user_menu', 'my_user_menu_override'); function my_user_menu_override($menu){ if(Isset($menu['questions'])) $menu['questions']['order'] = 1; // add order key here, default order key is 10 return $menu; }
User profile is being separated as a new extension. So please wait for some days. I will check your other 2 issue.
Yes its part of it, in older version it was add-on “Basic email” but now it is extension “AnsPress Notifications”. Working on this extension will release soon.
I have added a better sorting function and will use it for ordering user menu. /** * Sort array by order value. Group array which have same order number and then sort them. * @param array $array * @return array * @since 2.0.0-alpha2 */ function ap_sort_array_by_order($array){ $new_array = array(); if(!empty($array) && is_array($array) ){ $group = array(); foreach($array as $k => $a){ $order = $a['order']; $group[$order][] = $a; } usort($group, function($a, $b) { return key($a) – key($b); }); foreach($group as $a){ foreach($a as $newa) $new_array[] = $newa; } return $new_array; } }
Favorite button is renamed to subscribe. Now there will be a list of subscribed questions list in user profile. Favorite thing has been removed.