dam-spam/modules/check-allow-list-email.php
2026-01-16 00:03:33 -07:00

20 lines
No EOL
557 B
PHP

<?php
if ( !defined( 'ABSPATH' ) ) {
status_header( 404 );
exit;
}
class dam_spam_check_allow_list_email extends dam_spam_module {
public function process( $ip, &$stats = array(), &$options = array(), &$post = array() ) {
if ( is_user_logged_in() ) {
$current_user = wp_get_current_user();
$this->searchname = 'Allow List Email';
$gcache = isset( $options['allow_list'] ) && is_array( $options['allow_list'] ) ? $options['allow_list'] : array();
return $this->searchList( $current_user->user_email, $gcache );
}
return false;
}
}
?>