-
-
Save cartpauj/26c89ee92965817eaa10 to your computer and use it in GitHub Desktop.
This is great, thanks! A bit of a noob here, but is it possible to render a specific custom field on a new nav? I have been messing around with MeprUsersHelper::render_custom_fields(null, 'account'); MeprHooks::do_action('mepr-account-home-fields', $mepr_current_user);
but I can't get it to display a specific checkboxes field.
I'm using MemberPress in conjunction with Toolset to be able to have a visible Business Directory for our members. I would like the Account page to have a tab for a member to be able to edit their business directory listing - in much the same way that they can edit their member user account info. I have used the code above to create the tab, however, I need code to incorporate the Toolset CRED form shortcode into the functions.php file. Is it possible and if so, can you help?
FYI - there's now a 3rd party plugin that does this without any coding necessary: https://meprtoolbox.com/product/account-navigation-tabs/
FYI - there's now a 3rd party plugin that does this without any coding necessary: https://meprtoolbox.com/product/account-navigation-tabs/
This company seems to be no longer active but they are supporting previous purchases :( But your code is a godsend! thank you!
How or where do I insert the php code into my accounts page via the plug in? Thanks
I'm new to all this php stuff
@AnitaLobban You will need to install and active code snippet plugin (https://wordpress.org/plugins/code-snippets/). ---> Create a new snippet and copy-paste those codes above to your snippet ---> Check on "Only run on site front-end" then hit Save . Done =)
@cartpauj , is there a way to hide an existing tab eg: i want to hide the Home tab and set default tab to Subscriptions. Is that possible ?
Hi @Tri-Ryuzaki & @cartpauj do you know how to order custom memberpress account nav items ?
Line #24 and down can be deleted if you're just redirecting the user to an existing page somewhere else on the site.