Created
May 13, 2022 08:45
-
-
Save wp-user-manager/52125541ee96507d979f5fd1643fb208 to your computer and use it in GitHub Desktop.
WP User Manager - Rearrange order of account page tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
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
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