• Resolved Sabuj Kundu

    (@manchumahara)


    Hi,

    In your website I found developer documentation about how to create custom tab in account page, but I didn’t find any article for creating custom tab for profile page. I see there is option to put shortcode or other available tabs type from the dashboard form building. But I am looking if we can hook/filter to create custom tab in profile page ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support alexrollin

    (@alexrollin)

    The easy way is to use profile tabs builder to add tabs from predefined tabs or you can use shortcode to show dynamic custom data in tabs.

    To use the hook and filter, you can use ‘uwp_profile_tabs_predefined_fields’ filter to add the tab in the predefined list of profile tabs builder and you can use ‘uwp_profile_’ . $tab_key . ‘_tab_content’ hook to output the data on specific tab which you can target using tab key used to define tab in predefined list. You can checkout class-geodirectory-plugin.php file for example where we are doing the same thing.

    If you need further help please open a support ticket here:?https://userswp.io/support/

    Thread Starter Sabuj Kundu

    (@manchumahara)

    Hi,

    Thank you for your help. I already implemented this way following the code of related with invoice from the core plugin. I think you can add some code sample in developer doc for future.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.