Created
February 7, 2020 22:04
-
-
Save renventura/7b84b8c68ecf0746349b848e15069ead to your computer and use it in GitHub Desktop.
Stop recording MemberPress login events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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