-
Notifications
You must be signed in to change notification settings - Fork 32
Hooks
Ben Marshall edited this page Feb 26, 2021
·
8 revisions
Applied to the detection meta title.
-
$title
(string) The detection meta title. -
$setting_msg_key
(string) Setting message key.
add_filter(
'zerospam_detection_title',
function( $title, $setting_msg_key ) {
// Alter the title here.
return $title;
}
);
Applied to the detection message.
-
$message
(string) The detection message. -
$setting_msg_key
(string) Setting message key.
add_filter(
'zerospam_detection_message',
function( $message, $setting_msg_key ) {
// Alter the message here.
return $message;
}
);
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 all available WordPress Zero Spam settings.
$settings
(array) Available WordPress Zero Spam settings.
add_filter(
'zerospam_settings',
function( $settings ) {
// Alter the settings array here.
return $settings;
}
);
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;
}
);
Applied to the WordPress Zero Spam available option sections.
$sections
(string) Array of available sections.
add_filter(
'zerospam_setting_sections',
function( $sections ) {
// Alter the sections here.
return $sections;
}
);
Applied to the list of countries.
$countries
(array) Available countries.
add_filter(
'zerospam_countries',
function( $countries ) {
// Alter the countries array here.
return $countries;
}
);
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.