Custom Account Tabs
-
I have 2 custom account tabs and have been able to display the data but have not been able to update the data.
Searching high and low but to date no success
In the add_filter(‘um_account_content_hook_contact’, ‘um_account_content_hook_contact’);
function um_account_content_hook_contact( $output ) {}I have two lines
$args = ‘partner_spouse,occupation,printed_magazine,street_address,suburb_address,city_address,pobox_address,phone_number,mobile_number‘;
$fields = $ultimatemember->builtin->get_specific_fields( $args );
This will only display the last two phone_number and mobile_number (as they are predefined fields). It does not however display the first 7 as they are Custom Fields.If I replace
$fields = $ultimatemember->builtin->get_specific_fields( $args );
with
$fields = $ultimatemember->builtin->all_user_fields;
it will display all fields and will update those I change.The question is how can I get the Custom Fields displayed and be updateable
I have followed the instruction in the documentation and have
add_filter(‘um_account_page_default_tabs_hook’, ‘my_contact_tab_in_um’, 100 );
function my_contact_tab_in_um( $tabs ) { using $tabs[800]….}add_action(‘um_account_tab__contact’, ‘um_account_tab__contact’);
function um_account_tab__contact( $info ) {}add_filter(‘um_account_content_hook_contact’, ‘um_account_content_hook_contact’);
function um_account_content_hook_contact( $output ) {}Any help is really appreciated because we like the plugin.
Regards,
John Viseur
- The topic ‘Custom Account Tabs’ is closed to new replies.