add_filter('um_account_content_hook_my-plugin', 'myplugin_ultimatemember_security_tab_content');
add_filter('um_account_page_default_tabs_hook', 'myplugin_ultimatemember_security_tab', 100 );
function myplugin_ultimatemember_security_tab_content(){
global $output;
ob_start();
echo'<div class="um-field">';
show_user_page();
echo'</div>';
$output .= ob_get_contents();
ob_end_clean();
return $output;
}
function myplugin_ultimatemember_security_tab( $tabs ) {
$tabs[800]['my-plugin']['icon'] = 'um-faicon-key';
$tabs[800]['my-plugin']['title'] = 'Security';
$tabs[800]['my-plugin']['show_button'] = false;
$tabs[800]['my-plugin']['custom'] = true;
return $tabs;
}
function show_user_page(){
if(!empty($_POST['submit'])){
save_user_data();
}
}
Not works. how prevent my post data