I am following the guide: https://wpusermanager.com/article/234-how-to-add-a-new-tab-to-the-edit-account-page/
I have managed to add the tab using the code:
<?php
/**
* Register a new tab within the account page.
*
* @param array $tabs
*
* @return array
*/
function my_wpum_register_new_account_tabs( $tabs ) {
$tabs['custom-slug'] = [
'name' => esc_html__( 'Custom Title' ),
'priority' => 3, // Change this to define the position in the menu
];
return $tabs;
}
add_filter( 'wpum_get_account_page_tabs', 'my_wpum_register_new_account_tabs' );
However, the second set of code in the article…I do not know where to put it…?
<?php
function my_wpum_account_tab_content() {
// render content
}
add_action( 'wpum_account_page_content_custom-slug', 'my_wpum_account_tab_content' );
Any help would be greatly appreciated, please.
Thanks.
]]>I updated to the latest version of WooCommerce and the shortcode I was using on the “My Account” page that would allow customers to edit their information (name, email, username, address) etc. broke. I was using [wc_customer_edit_account_html]
I looked in the help docs and found [woocommerce_my_account] but this isn’t showing the information I want. See here: https://ibb.co/9WYnKMF
]]>Where and how can I alter the account info in which customers are able to edit themselves?
]]>Thank you
]]>I’m using the Course Builder Theme by THIMPRESS.
I can see Avatars in my member directory and on my edit user page, but the links to update/edit the avatar/photo do not display at all. I’ve added the code found here to my themes functions.php file, but still no links to upload/edit a users avatar, from their own page.
Unfortunately, this is an internal only site, so I cannot provide public login information. If you’d like to PM me, I would gladly get you some login information for troubleshooting, or provide diagnostic logs if you need it. Thanks!
]]>How can I get this resolved quickly?
]]>I’m having problems with some woocommerce features since when I go in my-account webpage, the links edit-account
and edit-address
do not exist.
Do I need to write my own code to enable users to change their address or to change their account details, or is there any function which I can use to do this?
Why these pages are not included in Woocommerce plugin?
This is screenshot which shows my Accounts configurations with all the end-point links. Any of these pages exist at this moment.