Skip to content

Instantly share code, notes, and snippets.

@renventura
Created February 7, 2020 22:04
Show Gist options
  • Save renventura/7b84b8c68ecf0746349b848e15069ead to your computer and use it in GitHub Desktop.
Save renventura/7b84b8c68ecf0746349b848e15069ead to your computer and use it in GitHub Desktop.
Stop recording MemberPress login events
<?php
add_action( 'mepr-event-store', 'stop_recording_mp_logins' );
/**
* Stop recording login events
*
* @param object $event Mepr_Event
*
* @return void
*/
function stop_recording_mp_logins( $event ) {
if ( 'login' === $event->event ) {
$event->destroy();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment