• Resolved Howdy_McGee

    (@howdy_mcgee)


    Hello,

    I was wondering if there was a hook in this plugin that I could trigger whenever the “active logins” limit is hit. I was looking to fire off an email to the user whenever this happens.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Up! Looking for this feature too.

    Plugin Author Joel James

    (@joelcj91)

    Hey all,

    There is no action hook, but you can use the loggedin_reached_limit filter for that.

    For example:

    add_filter( 'loggedin_reached_limit', function( $reached, $user_id ) {
       if ( $reached ) {
          // Send email here.
       }
    
       return $reached;
    } );
    • This reply was modified 4 years, 6 months ago by Joel James.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hook When Limit Is Hit’ is closed to new replies.