c_ws_plugin__s2member_ip_restrictions
public class c_ws_plugin__s2member_ip_restrictions
3.5
( 7 Methods ) Method Summary | |
---|---|
public static bool | delete_reset_all_ip_restrictions() Resets/deletes all IP Restrictions. |
public static null | delete_reset_all_ip_restrictions_via_ajax() Resets/deletes all IP Restrictions via AJAX. |
public static bool | delete_reset_specific_ip_restrictions(str $restriction) Resets/deletes specific IP Restrictions. |
public static null | delete_reset_specific_ip_restrictions_via_ajax() Resets/deletes specific IP Restrictions via AJAX. |
public static bool | ip_restrictions_ok(str $ip, str $restriction) Handles IP Restrictions. |
public static bool | specific_ip_restriction_at_or_above_max(str $restriction) Queries Transients for specific IP Restrictions at or above max allowable. |
public static bool | specific_ip_restriction_breached_security(str $restriction) Queries Transients for specific IP Restrictions associated with a security breach. |
public static bool delete_reset_all_ip_restrictions()
Resets/deletes all IP Restrictions.
3.5
bool - Always returns a true
value.
Make return value conditional, based on success.
public static null delete_reset_all_ip_restrictions_via_ajax()
Resets/deletes all IP Restrictions via AJAX.
3.5
add_action("wp_ajax_ws_plugin__s2member_delete_reset_all_ip_restrictions_via_ajax");
null - Exits script execution after returning data for AJAX caller.
public static bool delete_reset_specific_ip_restrictions(str $restriction)
Resets/deletes specific IP Restrictions.
3.5
str $restriction - Unique IP Restriction name/identifier. Such as a Username, or a unique access code.
bool - Always returns a true
value.
Make return value conditional, based on success.
public static null delete_reset_specific_ip_restrictions_via_ajax()
Resets/deletes specific IP Restrictions via AJAX.
3.5
add_action("wp_ajax_ws_plugin__s2member_delete_reset_specific_ip_restrictions_via_ajax");
null - Exits script execution after returning data for AJAX caller.
public static bool ip_restrictions_ok(str $ip, str $restriction)
Handles IP Restrictions.
IP address details are stored as Transients.
3.5
str $ip - IP Address.
str $restriction - Unique IP Restriction name/identifier. Such as a Username, or a unique access code.
bool - True if IP Restrictions are OK, otherwise this function will exit script execution after issuing a warning.
public static bool specific_ip_restriction_at_or_above_max(str $restriction)
Queries Transients for specific IP Restrictions at or above max allowable.
130407
str $restriction - Unique IP Restriction name/identifier. Such as Username, or a unique access code.
bool - TRUE if at or above max allowable IPs; else FALSE.
public static bool specific_ip_restriction_breached_security(str $restriction)
Queries Transients for specific IP Restrictions associated with a security breach.
3.5
str $restriction - Unique IP Restriction name/identifier. Such as a Username, or a unique access code.
bool - True if the specific IP Restriction is associated with a security breach, else false.
IP Restrictions.