UM2.0 Profile Tabs
-
Hi Guys,
Nice to see the version 2 of your plugin is out. Thanks for this.
Could you please halp me with the snippet to extend the profile tabs?/* First we need to extend main profile tabs */ add_filter('um_profile_tabs', 'add_custom_profile_tab', 1000 ); function add_custom_profile_tab( $tabs ) { $tabs['mycustomtab'] = array( 'name' => 'My custom tab', 'icon' => 'um-faicon-comments', ); return $tabs; } /* Then we just have to add content to that tab using this action */ add_action('um_profile_content_mycustomtab_default', 'um_profile_content_mycustomtab_default'); function um_profile_content_mycustomtab_default( $args ) { echo 'Hello world!'; }
This snippet from your developers guide dosn’t work anymore ??
Thanks and regards
Pare
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘UM2.0 Profile Tabs’ is closed to new replies.