Reply To: Additional tabs on account page

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

#3383

sanjeev3
Member

Glad to know your issue is solved.

As said already, to add several endpoints, you may simply assign array of new items and merge into items.

add_filter( 'user_registration_account_menu_items', 'ur_custom_menu_items', 10, 1 );
function ur_custom_menu_items( $items ) {
    $new_items = array(
        'new-item-1' => __( 'New Item 1', 'user-registration' ),
        'new-item-2' => __( 'New Item 2', 'user-registration' ),
        'new-item-3' => __( 'New Item 3', 'user-registration' ),
         ...  
    );

    return array_merge( $items, $new_items );
}

Hope this helps! We can’t provide you full code.