Viewing 1 replies (of 1 total)
  • Plugin Author Saint Systems

    (@saintsystems)

    @ogagliardijr,

    The plugin doesn’t currently do this, but we will consider it for a future release. There is an action hook disable_user_login.user_disabled that fires and passes the $user_id as a parameter which you could use to store the date the user was disabled in a user_meta key.

    Example:

    
        add_action( 'disable_user_login.user_disabled', function( $user_id ) {
            update_user_meta( $user_id, '_disabled_at', current_time( 'timestamp' ) );
        }, 10, 1 );
    
    

    Then, you could check the _disabled_at user meta key to see when they were last disabled.

    • This reply was modified 2 years, 10 months ago by Saint Systems.
Viewing 1 replies (of 1 total)
  • The topic ‘Date user account was disabled/enabled’ is closed to new replies.