Add profile form to My Account page
-
Hi,
I have created an edit-profile form [wppb-edit-profile form_name=”medical-information”] and I would like to display its result in a separate tab on My Account page.
I have created a custom endpoint. And is able to display the profile details in this way
function my_custom_endpoint_content() {
echo ‘<h3>Next of Kin</h3>’;
global $current_user;
get_currentuserinfo();
echo ‘First Name ‘ . $current_user->next_of_kin_first_name . “\n”;
echo ‘Last Name ‘ . $current_user->next_of_kin_last_name . “\n”;
echo ‘Phone Number ‘ . $current_user->next_of_kin_phone . “\n”;
}add_action( ‘woocommerce_account_my-custom-endpoint_endpoint’, ‘my_custom_endpoint_content’ );
Is it possible to display all information that was submitted through a particular edit-profile form?
- The topic ‘Add profile form to My Account page’ is closed to new replies.