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

Change role when user expires? ‘

function handle_on_expire_default_to_role( $expired_user ) {
//if ( $expired_user->on_expire_default_to_role ) {
//if ( get_role( $expired_user->on_expire_default_to_role ) ) {
//$u = new WP_User( $expired_user->user_id );
//$u->set_role( $expired_user->on_expire_default_to_role );
//update_user_meta($expired_user->user_id, ‘role’, $expired_user->on_expire_default_to_role);
//}
//}
}

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

Post a comment

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

thirteen − nine =

  • 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.