New Tab in the Edit Account page
-
Hi,
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.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘New Tab in the Edit Account page’ is closed to new replies.