-
Notifications
You must be signed in to change notification settings - Fork 32
Hooks
Ben Marshall edited this page Feb 23, 2021
·
8 revisions
Applied to the IP address used by WordPress Zero Spam.
$ip
(string) The user's IP address.
add_filter(
'zerospam_get_ip',
function( $ip ) {
// Alter the IP address here.
return $ip;
}
);
Applied to the WordPress Zero Spam log types.
$types
(array) Available log types.
add_filter(
'zerospam_types',
function( $types ) {
// Add a custom log type.
$types['custom_type_key'] = 'Custom Type Name';
return $types;
}
);
Fires when WordPress Zero Spam was fully loaded and instantiated.
Fires on WordPress Zero Spam init
, after WordPress Zero Spam has finished loading but before any headers are sent.