Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment