Get In Touch
MEDPIKE
info@medpike.com
Work Inquiries
job@medpike.com

New tab ultimate member action

add_filter(‘um_account_page_default_tabs_hook’, ‘my_custom_tab_in_um’, 100 );
function my_custom_tab_in_um( $tabs ) {
$current_user = wp_get_current_user();
$user_id = get_current_user_id();
if(($current_user->role != ‘role1’) && ($current_user->role != ‘role2’)&& ($current_user->role != ‘role’)) {
$tabs[800][‘mytab’][‘icon’] = ‘um-faicon ‘;
$tabs[800][‘mytab’][‘title’] = ‘Service’;
$tabs[800][‘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; }
}

/* I can 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();
$clave = $current_user->user_login;

global $current_user;
get_currentuserinfo();
$string = “\r\n\n\r\name:\r\n\n\r\n”;
echo nl2br($string);
echo ‘‘ . $current_user->nickname . ‘‘;
$string = “\r\n\n\r\nIMPORTANT\r”;
$string2 = “\r\n\n\r\nNUMERO DE SERVICIO:\r\n\n\r\n”;
echo nl2br($string2);
echo ‘‘ . $current_user->yim . ‘‘;
echo nl2br($string);
?>

text field here….

more txt…..

Author avatar
miguel
https://blog.medpike.com

Post a comment

Your email address will not be published. Required fields are marked *

twenty − 18 =

  • Tureporti

    Radiology Second Opinions
    Tureporti
    Understanding radiology reports
    HIPAA ready
  • Radiolapp

    AI RIS-PACS On Demand
    Radiolapp
    Pay As You Go RIS-PACS
    AI included
© 2021, MEDPIKE. Made with passion by MEDPIKE.
All right reserved.
We use cookies to give you the best experience.