Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save champsupertramp/3ecd58ea83ac5fcffa75b12b33e4525b to your computer and use it in GitHub Desktop.
Save champsupertramp/3ecd58ea83ac5fcffa75b12b33e4525b to your computer and use it in GitHub Desktop.
Ultimate Member - Add menu items in Profile Settings menu
<?php
add_filter("um_profile_edit_menu_items","um_custom_profile_edit_menu_items",10,2);
function um_custom_profile_edit_menu_items( $items, $profile_id ){
$items[ ] = array(
"my_custom_menu_item" => '<a href="http://example.com/" class="real_url">'.__('My Custom Menu Item','ultimatemember').'</a>',
);
return $items;
}
?>
@himanshuahuja96
Copy link

@chamapsupertramp , Buddy this snippet is not working at all..For adding menu items in Profile Setting

@champsupertramp
Copy link
Author

Hi Everyone,

I'll be sharing some Ultimate Member customizations & tutorials on my website: www.champ.ninja

Subscribe to my newsletter to get the latest tutorials.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment