• Beehive - Google Analytics
  • Branda
  • Defender
  • Forminator
  • Hummingbird
  • Hustle
  • Shipper
  • SmartCrawl SEO
  • Smush
  • Snapshot
  • WPMU DEV Dashboard

Defender Hooks Documentation

Total hooks: 77
Undocumented hooks: 60

1. wd_wpmudev_call_request_args

Type: filter

No description

Arguments: $post_vars

2. wd_scan_get_days_of_week

Type: filter

No description

Arguments: $days

3. defender_user_ip

Type: filter

No description

Arguments: $cf_ip

4. defender_user_ip

Type: filter

No description

Arguments: $ret

5. wd_scan_get_times_interval

Type: filter

No description

Arguments: array('00', '30')

6. wd_scan_get_times_hour_min

Type: filter

No description

Arguments: $time

7. wd_scan_get_times

Type: filter

No description

Arguments: $data

8. defender_ssl_verify

Type: filter

No description

Arguments: true

9. defender_server_types

Type: filter

No description

Arguments: array('apache' => 'Apache', 'litespeed' => 'LiteSpeed', 'nginx' => 'NGINX', 'iis' => 'IIS', 'iis-7' => 'IIS 7')

10. defender_current_page_url

Type: filter

No description

Arguments: $url

11. wpmudev-recommended-plugins-register-notice

Type: action

No description

Arguments: plugin_basename(__FILE__), 'Defender', array('toplevel_page_wp-defender', 'toplevel_page_wp-defender-network'), array('after', '.sui-wrap .sui-header')

12. defender_enqueue_assets

Type: action

No description

Arguments: none

13. wdev-register-plugin

Type: action

No description

Arguments: plugin_basename(__FILE__), 'Defender', '/plugins/defender-security/', 'Get Secure!'->domain), '0cecf2890e'

14. defender_enqueue_assets

Type: action

No description

Arguments: none

15. defender_enqueue_assets

Type: action

No description

Arguments: none

16. wd_wpmudev_call_request_args

Type: filter

No description

Arguments: $post_vars

17. wd_scan_get_days_of_week

Type: filter

No description

Arguments: $days

18. defender_user_ip

Type: filter

No description

Arguments: $cf_ip

19. defender_user_ip

Type: filter

No description

Arguments: $ret

20. wd_scan_get_times_interval

Type: filter

No description

Arguments: array('00', '30')

21. wd_scan_get_times_hour_min

Type: filter

No description

Arguments: strftime('%I:%M %p', strtotime($time))

22. wd_scan_get_times

Type: filter

No description

Arguments: $data

23. defender_ssl_verify

Type: filter

No description

Arguments: true

24. defender_server_types

Type: filter

No description

Arguments: array('apache' => 'Apache', 'litespeed' => 'LiteSpeed', 'nginx' => 'NGINX', 'iis' => 'IIS', 'iis-7' => 'IIS 7')

25. defender_current_page_url

Type: filter

No description

Arguments: $url

26. wdScanPreventStuckSize

Type: filter

No description

Arguments: 30000

27. defender_scan_memory_alloc

Type: filter

loop through scanning steps, instance scan step as queue and process

Arguments: 128

28. sendScanEmail

Type: action

When we processing the scan by ajax, clear all the which does the same job

Arguments: none

29. report_email_logs_link

Type: filter

No description

Arguments: network_admin_url('admin.php?page=wdf-scan'), $email

30. wd_notification_email_params

Type: filter

No description

Arguments: $params

31. wd_notification_email_subject

Type: filter

No description

Arguments: $settings->email_subject

32. wd_notification_email_content_before

Type: filter

No description

Arguments: $email_content, $model

33. wd_notification_email_content_after

Type: filter

No description

Arguments: $email_content, $model

34. wd_scan_noreply_email

Type: filter

No description

Arguments: $no_reply_email

35. defender_ssl_verify

Type: filter

No description

Arguments: true

36. defender_ssl_verify

Type: filter

No description

Arguments: true

37. processingHardener{$slug}

Type: action

No description

Arguments: none

38. processRevert{$slug}

Type: action

No description

Arguments: none

39. wd_tweaks_notification_interval

Type: filter

No description

Arguments: '+24 hours'

40. wd_tweaks_last_action_time

Type: filter

No description

Arguments: $settings->last_seen

41. wd_scan_noreply_email

Type: filter

No description

Arguments: $no_reply_email

42. wd_tweaks_notification_interval

Type: filter

No description

Arguments: '+24 hours'

43. wd_tweaks_last_notification_sent

Type: filter

No description

Arguments: $settings->last_sent

44. report_email_logs_link

Type: filter

No description

Arguments: network_admin_url('admin.php?page=wdf-hardener'), $email

45. shake_error_codes

Type: filter

Filters the error codes array for shaking the login form.

Arguments: $shake_error_codes

Arguments:

  • $shake_error_codes - array
    Error codes that shake the login form.

46. login_enqueue_scripts

Type: action

Enqueue scripts and styles for the login page.

Arguments: none

47. login_head

Type: action

Fires in the login page header after scripts are enqueued.

Arguments: none

48. login_headerurl

Type: filter

Filters link URL of the header logo above login form.

Arguments: $login_header_url

Arguments:

  • $login_header_url - string
    Login header logo URL.

49. login_headertitle

Type: filter

Filters the title attribute of the header logo above login form.

Arguments: $login_header_title

Arguments:

  • $login_header_title - string
    Login header logo title attribute.

50. login_body_class

Type: filter

Filters the login page body classes.

Arguments: $classes, $action

Arguments:

  • $classes - array
    An array of body classes.

  • $action - string
    The action that brought the visitor to the login page.

51. login_header

Type: action

Fires in the login page header after the body tag is opened.

Arguments: none

52. login_message

Type: filter

Filters the message to display above the login form.

Arguments: $message

Arguments:

  • $message - string
    Login message text.

53. login_errors

Type: filter

Filters the error messages displayed above the login form.

Arguments: $errors

Arguments:

  • $errors - string
    Login error message.

54. login_messages

Type: filter

Filters instructional messages displayed above the login form.

Arguments: $messages

Arguments:

  • $messages - string
    Login messages.

55. login_footer

Type: action

Fires in the login page footer.

Arguments: none

56. wpd_masklogin_disabled

Type: filter

No description

Arguments: 0

57. login_redirect

Type: filter

hook into wordpress login, can't use authenticate hook as that badly conflict

Arguments: $redirect, isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : '', $user

58. login_redirect

Type: filter

No description

Arguments: $redirect, isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : '', $user

59. wd_audit_settings_keys

Type: filter

No description

Arguments: array('blogname' => 'Site Title'->domain), 'blogdescription' => 'Tagline'->domain), 'gmt_offset' => 'Timezone'->domain), 'date_format' => 'Date Format'->domain), 'time_format' => 'Time Format'->domain), 'start_of_week' => 'Week Starts On'->domain), 'timezone_string' => 'Timezone'->domain), 'WPLANG' => 'Site Language'->domain), 'siteurl' => 'WordPress Address (URL)'->domain), 'home' => 'Site Address (URL)'->domain), 'admin_email' => 'Email Address'->domain), 'users_can_register' => 'Membership'->domain), 'default_role' => 'New User Default Role'->domain), 'default_pingback_flag' => 'Default article settings'->domain), 'default_ping_status' => 'Default article settings'->domain), 'default_comment_status' => 'Default article settings'->domain), 'comments_notify' => 'Email me whenever'->domain), 'moderation_notify' => 'Email me whenever'->domain), 'comment_moderation' => 'Before a comment appears'->domain), 'require_name_email' => 'Other comment settings'->domain), 'comment_whitelist' => 'Before a comment appears'->domain), 'comment_max_links' => 'Comment Moderation'->domain), 'moderation_keys' => 'Comment Moderation'->domain), 'blacklist_keys' => 'Comment Blacklist'->domain), 'show_avatars' => 'Avatar Display'->domain), 'avatar_rating' => 'Maximum Rating'->domain), 'avatar_default' => 'Default Avatar'->domain), 'close_comments_for_old_posts' => 'Other comment settings'->domain), 'close_comments_days_old' => 'Other comment settings'->domain), 'thread_comments' => 'Other comment settings'->domain), 'thread_comments_depth' => 'Other comment settings'->domain), 'page_comments' => 'Other comment settings'->domain), 'comments_per_page' => 'Other comment settings'->domain), 'default_comments_page' => 'Other comment settings'->domain), 'comment_order' => 'Other comment settings'->domain), 'comment_registration' => 'Other comment settings'->domain), 'thumbnail_size_w' => 'Thumbnail size'->domain), 'thumbnail_size_h' => 'Thumbnail size'->domain), 'thumbnail_crop' => 'Thumbnail size'->domain), 'medium_size_w' => 'Medium size'->domain), 'medium_size_h' => 'Medium size'->domain), 'medium_large_size_w' => 'Medium size'->domain), 'medium_large_size_h' => 'Medium size'->domain), 'large_size_w' => 'Large size'->domain), 'large_size_h' => 'Large size'->domain), 'image_default_size' => '', wp_defender()->domain), '->domain), 'image_default_link_type' => '', wp_defender()->domain), '->domain), 'posts_per_page' => 'Blog pages show at most'->domain), 'posts_per_rss' => 'Syndication feeds show the most recent'->domain), 'rss_use_excerpt' => 'For each article in a feed, show'->domain), 'show_on_front' => 'Front page displays'->domain), 'page_on_front' => 'Front page'->domain), 'page_for_posts' => 'Posts page'->domain), 'blog_public' => 'Search Engine Visibility'->domain), 'default_category' => 'Default Post Category'->domain), 'default_email_category' => 'Default Mail Category'->domain), 'default_link_category' => '', wp_defender()->domain), '->domain), 'mailserver_url' => 'Mail Server'->domain), 'mailserver_port' => 'Port'->domain), 'mailserver_login' => 'Login Name'->domain), 'mailserver_pass' => 'Password'->domain), 'ping_sites' => '', wp_defender()->domain), '->domain), 'category_base' => 'Category base'->domain), 'tag_base' => 'Tag base'->domain), 'registrationnotification' => 'Registration notification'->domain), 'registration' => 'Allow new registrations'->domain), 'add_new_users' => 'Add New Users'->domain), 'menu_items' => 'Enable administration menus'->domain), 'upload_space_check_disabled' => 'Site upload space'->domain), 'blog_upload_space' => 'Site upload space'->domain), 'upload_filetypes' => 'Upload file types'->domain), 'site_name' => 'Network Title'->domain), 'first_post' => 'First Post'->domain), 'first_page' => 'First Page'->domain), 'first_comment' => 'First Comment'->domain), 'first_comment_url' => 'First Comment URL'->domain), 'first_comment_author' => 'First Comment Author'->domain), 'welcome_email' => 'Welcome Email'->domain), 'welcome_user_email' => 'Welcome User Email'->domain), 'fileupload_maxk' => 'Max upload file size'->domain), 'illegal_names' => 'Banned Names'->domain), 'limited_email_domains' => 'Limited Email Registrations'->domain), 'banned_email_domains' => 'Banned Email Domains'->domain))

60. report_email_logs_link

Type: filter

No description

Arguments: $logs_url, $email

61. wd_audit_noreply_email

Type: filter

No description

Arguments: $no_reply_email

62. wd_lockout_noreply_email

Type: filter

No description

Arguments: $no_reply_email

63. wd_login_lockout

Type: action

Case if it just banned and the lockout duration too short, we use the locktime instead

Arguments: $model, $scenario

64. report_email_logs_link

Type: filter

No description

Arguments: apply_filters('wp_defeder/iplockout/email_report_link', network_admin_url('admin.php?page=wdf-ip-lockout&view=logs')), $item['email']

65. wp_defeder/iplockout/email_report_link

Type: filter

No description

Arguments: network_admin_url('admin.php?page=wdf-ip-lockout&view=logs')

66. report_email_logs_link

Type: filter

No description

Arguments: network_admin_url('admin.php?page=wdf-ip-lockout&view=reporting'), $item['email']

67. wd_lockout_noreply_email

Type: filter

No description

Arguments: $no_reply_email

68. wd_login_lockout

Type: action

No description

Arguments: $model, $force, $blacklist

69. wd_404_lockout

Type: action

No description

Arguments: $model, $uri, $isBlacklist

70. wd_lockout_notification_current_time

Type: filter

No description

Arguments: time()

71. wd_404_lockout

Type: action

Priorities - Whitelist extensions files & folders - Blacklist extensions files & folders - attemps inside a window

Arguments: $model, $scenario

72. wd_lockout_noreply_email

Type: filter

No description

Arguments: $no_reply_email

73. ip_lockout_default_whitelist_ip

Type: filter

No description

Arguments: array('192.241.148.185', '104.236.132.222', '192.241.140.159', '192.241.228.89', '198.199.88.192', '54.197.28.242', '54.221.174.186', '54.236.233.244', '127.0.0.1', array_key_exists('SERVER_ADDR', $_SERVER) ? $_SERVER['SERVER_ADDR'] : (isset($_SERVER['LOCAL_ADDR']) ? $_SERVER['LOCAL_ADDR'] : null))

74. wd_before_lockout

Type: action

No description

Arguments: none

75. ip_lockout_logs_store_backward

Type: filter

No description

Arguments: '-' . \WP_Defender\Module\IP_Lockout\Model\Settings::instance()->storage_days . ' days'

76. ip_lockout_default_whitelist_ip

Type: filter

Make sure those is boolen

Arguments: array()

77. wd_render_partial

Type: filter

No description

Arguments: $content, $viewFile, $params