• Resolved chouniou

    (@chouniou)


    Hi,
    First of all, thank you for the creation of this plugin, which will be very useful in my development tasks.

    I need a function that turns status to “Inactive” when a user (with Subscriber role) log out of the site.

    Is that possible?
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    I suggest you to try this workaround, I am not sure you it works for your purpose but you can try it.

    add_filter( ‘um_logout_redirect_url’,function( $url, $user_id){

    // set user to inactive here
    // you can update user meta to update status
    // you should still return $url, do not return or echo anything else.

    return $url;

    },10,2);

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @chouniou,

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User inactive after logout’ is closed to new replies.