Custom tab remove update account
-
Hello i create a custom tab with this code in doc of the plugin
In the content there is a button that when click redirect to another page, sometimes when click in the button appears a message with account update, i want to remove the account update inside this tab/* add new tab called "mytab" */ add_filter('um_account_page_default_tabs_hook', 'my_custom_tab_in_um', 100 ); function my_custom_tab_in_um( $tabs ) { $tabs[000]['mytab']['icon'] = 'um-faicon-pencil'; $tabs[000]['mytab']['title'] = 'My Custom Tab'; $tabs[000]['mytab']['custom'] = true; return $tabs; } /* make our new tab hookable */ add_action('um_account_tab__mytab', 'um_account_tab__mytab'); function um_account_tab__mytab( $info ) { global $ultimatemember; extract( $info ); $output = $ultimatemember->account->get_tab_output('mytab'); if ( $output ) { echo $output; } } /* Finally we add some content in the tab */ add_filter('um_account_content_hook_mytab', 'um_account_content_hook_mytab'); function um_account_content_hook_mytab( $output ){ ob_start(); ?> <div class="um-field"> <button>click</button> </div> <?php $output .= ob_get_contents(); ob_end_clean(); return $output; }
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Custom tab remove update account’ is closed to new replies.