Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wp-user-manager/52125541ee96507d979f5fd1643fb208 to your computer and use it in GitHub Desktop.
Save wp-user-manager/52125541ee96507d979f5fd1643fb208 to your computer and use it in GitHub Desktop.
WP User Manager - Rearrange order of account page tabs
<?php
function my_wpum_rearrange_account_tabs( $tabs ) {
// Find the correct slug used in the URL, alter the priority
$tabs['email-subscriptions'] ['priority'] = 5;
return $tabs;
}
add_filter( 'wpum_get_account_page_tabs', 'my_wpum_rearrange_account_tabs', 100 );
@wp-user-manager
Copy link
Author

View Profile = 'view'
Logout = 'logout'

Here's the code in the plugin incase you need it https://github.com/WPUserManager/wp-user-manager/blob/27a34934ad45c547a4d0f582be657522b2abf008/includes/functions.php#L687

@KeymerHealth
Copy link

Thank you for confirming those slugs and for linking the plugin code. I made the adjustments and uploaded the php file and it has worked perfectly. Thank you for your help with this! 👍

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