Reply To: Additional tabs on account page

Home Forums User Registration Additional tabs on account page Reply To: Additional tabs on account page

#3338

sanjeev3
Member

Hello Montiel,

Looks like you have missed the hook for user_registration_new_item_endpoint_content() callback function.

add_action( 'user_registration_account_new-item_endpoint', 'user_registration_new_item_endpoint_content' );
function user_registration_new_item_endpoint_content() {
    echo 'Your new content';    // or the template ur_get_template( 'myaccount/new-item.php');
}

To add several endpoints, you may simply assign array of new items and merge into items provided by user_registration_account_menu_itemsfilter hook.

Hope this helps!

Regards,
WPEverest Support