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

Snapshot Hooks Documentation

Total hooks: 110
Undocumented hooks: 86

1. wpmudev_plugin_ui_enqueued

Type: action

Allow other plugins to enqueue css/js after shared-ui to overwrite certain definitions.

Arguments: none

2. wpmudev-admin-notice

Type: filter

Display a custom success message on the WPMU Dashboard pages.

Arguments: false

3. snapshot_config_loaded

Type: action

Fires when config data has been loaded

<p>Can be used to manipulate the loaded data on the fly.</p>

Arguments: none

4. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

5. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

6. snapshot_limit_of_files_per_session

Type: filter

No description

Arguments: 200

7. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

8. snapshot_current_domain

Type: filter

No description

Arguments: DOMAIN_CURRENT_SITE

9. snapshot_current_path

Type: filter

No description

Arguments: PATH_CURRENT_SITE

10. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

11. snapshot_current_domain

Type: filter

No description

Arguments: DOMAIN_CURRENT_SITE

12. snapshot_current_path

Type: filter

No description

Arguments: PATH_CURRENT_SITE

13. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

14. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

15. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

16. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

17. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

18. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

19. wpmudev_branding_hide_branding

Type: filter

No description

Arguments: false

20. wpmudev_branding_hero_image

Type: filter

No description

Arguments: $hero_image

21. wpmudev_branding_footer_text

Type: filter

No description

Arguments: $footer_text

22. wpmudev_branding_hide_doc_link

Type: filter

No description

Arguments: false

23. snapshot_class_loader_pre_processing

Type: action

No description

Arguments: $this

24. snapshot_class_file_override

Type: filter

No description

Arguments: $filename

25. snapshot_stop_cron

Type: filter

Allows to overide Snapshot CRON job run status.

Arguments: $stop

26. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

27. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

28. wdp_register_hub_action

Type: filter

No description

Arguments: array()

29. wdp_register_hub_action

Type: filter

No description

Arguments: array()

30. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

31. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

32. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

33. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

34. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

35. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

36. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

37. snapshot_manage_backup_file_restore

Type: filter

No description

Arguments: $status

38. snapshot_manage_backup_file_restore

Type: filter

Filter Manage file restore

Arguments: $status

Arguments:

  • $response - bool

39. snapshot_full_backups_restore_tables

Type: action

No description

Arguments: $all_tables, $tables

40. snapshot_manage_backup_table_restore

Type: filter

Filter Manage backup table restore

Arguments: $status

Arguments:

  • $response - bool

41. snapshot_zip_file_corrupt

Type: filter

Filter: snapshot_zip_file_corrupt Allows to imitate zip file size getting corrupted after new files are added to it

Arguments: $zip_corrupt

42. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

43. snapshot_maybe_should_it_stop

Type: filter

Check for stop.

Arguments: false

44. snapshot_maybe_should_it_stop

Type: filter

Check for stop.

Arguments: false

45. {$this->get_filter('cron_error_stop')}

Type: action

Automatic backup processing encountered too many errors

Arguments: 'process', $key, $msg

Arguments:

  • - string
    Action type indicator (process or finish)

  • $key - string
    Error message key

  • $msg - string
    Human-friendly message description

46. {$this->get_filter('cron_error_stop')}

Type: action

Automatic backup processing encountered too many errors

Arguments: 'finish', $key, $msg

Arguments:

  • - string
    Action type indicator (process or finish)

  • $key - string
    Error message key

  • $msg - string
    Human-friendly message description

47. {$this->get_filter('kickstart_delay')}

Type: filter

No description

Arguments: 5 * 60

48. {$this->get_filter('next_backup_start')}

Type: filter

No description

Arguments: $next_event + rand(-1 * $disperse, +1 * $disperse)

49. {$this->get_filter('next_backup_start')}

Type: filter

No description

Arguments: $next_event

50. {$this->get_filter('backup_kickstart')}

Type: filter

No description

Arguments: \Snapshot_Model_Time::get()->get_utc_time() + $this->get_kickstart_delay()

51. secure_auth_cookie

Type: filter

No description

Arguments: $secure, $user_id

52. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

53. snapshot_manage_backup_init_error_restore

Type: filter

No description

Arguments: $error

54. snapshot_manage_backup_init_error_restore

Type: filter

No description

Arguments: false

55. snapshot_manage_backup_restore

Type: filter

Filter Manage backup restore

Arguments: $response

Arguments:

  • $response - array

56. {$this->get_filter('ajax_error_stop')}

Type: action

Automatic backup processing encountered too many errors

Arguments: 'process', $key, $msg

Arguments:

  • - string
    Action type indicator (process or finish).

  • $key - string
    Error message key.

  • $msg - string
    Human-friendly message description.

57. {$this->get_filter('ajax_error_stop')}

Type: action

Automatic backup processing encountered too many errors

Arguments: 'finish', $key, $msg

Arguments:

  • - string
    Action type indicator (process or finish).

  • $key - string
    Error message key.

  • $msg - string
    Human-friendly message description.

58. snapshot_full_backups_log_enabled

Type: filter

No description

Arguments: $this->is_explicitly_enabled() || $this->is_implicitly_enabled()

59. snapshot_full_backups_log_enabled_explicit

Type: filter

No description

Arguments: (bool) $this->_model->get_config('full_log_enable', false)

60. snapshot_full_backups_log_enabled_implicit

Type: filter

No description

Arguments: self::LOG_IMPLICIT === $enabled

61. {$this->get_filter('backup_start')}

Type: action

Successful backup started hook

Arguments: $backup

Arguments:

  • $this - \Snapshot_Helper_Backup
    Current backup instance.

62. {$this->get_filter('error')}

Type: action

Automatic backup processing encountered too many errors

Arguments: 'process', $error, $backup

Arguments:

  • - string
    Action type indicator (process or finish)

  • $error - string
    Offending error message key

  • $backup - object, bool
    A Snapshot_Helper_Backup instance, or (bool)false

63. {$this->get_filter('backup_processing')}

Type: action

Successful backup processing hook

Arguments: $backup

Arguments:

  • $this - \Snapshot_Helper_Backup
    Current backup instance.

64. {$this->get_filter('error')}

Type: action

Automatic backup processing encountered too many errors

Arguments: 'finish', $error, $backup

Arguments:

  • - string
    Action type indicator (process or finish)

  • $error - string
    Offending error message key

  • $backup - object, bool
    A Snapshot_Helper_Backup instance, or (bool)false

65. {$this->get_filter('backup_finished')}

Type: action

Successful backup finished hook

Arguments: $backup

Arguments:

  • $this - \Snapshot_Helper_Backup
    Current backup instance.

66. {$this->get_filter('backup_finishing')}

Type: action

Successful backup finishing (uploading) hook

Arguments: $backup

Arguments:

  • $this - \Snapshot_Helper_Backup
    Current backup instance.

67. {$this->get_filter('backup_finished')}

Type: action

Successful backup finished hook

Arguments: $backup

Arguments:

  • $this - \Snapshot_Helper_Backup
    Current backup instance.

68. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

69. {$this->get_filter('restore_processing')}

Type: action

Restore processing hook

Arguments: $restore

Arguments:

  • $this - \Snapshot_Helper_Restore
    Current restore instance.

70. {$this->get_filter('restore_finished')}

Type: action

Restore finishing hook

Arguments: $restore

Arguments:

  • $this - \Snapshot_Helper_Restore
    Current restore instance.

71. {$me->get_filter('message')}

Type: filter

No description

Arguments: $msg, $key

72. {$this->get_filter('get_backups')}

Type: filter

No description

Arguments: $backups

73. {$this->get_filter('domain')}

Type: filter

No description

Arguments: network_site_url()

74. snapshot_mocks_api_response_code

Type: filter

No description

Arguments: (int) wp_remote_retrieve_response_code($result)

75. snapshot_mocks_api_response_body

Type: filter

No description

Arguments: wp_remote_retrieve_body($result)

76. {$this->get_filter('api_key')}

Type: filter

No description

Arguments: $api_key

77. {$this->get_filter('help_url')}

Type: filter

No description

Arguments: $help_url, $url

78. {$this->get_filter('api_space_used')}

Type: filter

No description

Arguments: $size

79. {$this->get_filter('api_space_total')}

Type: filter

No description

Arguments: $total

80. {$this->get_filter('api_space_free')}

Type: filter

No description

Arguments: $free

81. {$this->get_filter('api_space_free')}

Type: filter

No description

Arguments: $free

82. {$this->get_filter('api_space_free')}

Type: filter

No description

Arguments: $free

83. {$this->get_filter('backups_get')}

Type: filter

No description

Arguments: $raw

84. {$this->get_filter('backups_refresh')}

Type: filter

No description

Arguments: $backups

85. {$this->get_filter('cache_expiration')}

Type: filter

No description

Arguments: self::CACHE_EXPIRATION

86. {$this->get_filter('get_backups')}

Type: filter

No description

Arguments: $this->_get_raw_backup_items()

87. {$this->get_filter('has_dashboard')}

Type: filter

No description

Arguments: $this->is_dashboard_active() && $this->has_dashboard_key()

88. {$this->get_filter('is_dashboard_active')}

Type: filter

No description

Arguments: class_exists('WPMUDEV_Dashboard')

89. {$this->get_filter('has_dashboard_key')}

Type: filter

No description

Arguments: !empty($key)

90. {$this->get_filter('is_active')}

Type: filter

No description

Arguments: $this->get_config('active')

91. {$this->get_filter('schedule_frequencies')}

Type: filter

No description

Arguments: $frequencies, $title_case

92. {$this->get_filter('schedule_frequency')}

Type: filter

No description

Arguments: $value

93. {$this->get_filter('schedule_times')}

Type: filter

No description

Arguments: $times

94. {$this->get_filter('schedule_time')}

Type: filter

No description

Arguments: $value

95. {$this->get_filter('has_backups')}

Type: filter

No description

Arguments: !empty($backups)

96. {$this->get_filter('get_backups')}

Type: filter

No description

Arguments: array_merge($this->_storage->get_backups(), $this->_local->get_backups())

97. {$this->get_filter('local_timestamp')}

Type: filter

No description

Arguments: current_time('timestamp', 0)

98. {$this->get_filter('utc_timestamp')}

Type: filter

No description

Arguments: current_time('timestamp', 1)

99. snapshot_destinations_loaded

Type: action

No description

Arguments: none

100. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

101. snapshot_home_path

Type: filter

No description

Arguments: get_home_path()

102. snapshot_queue_tableset_full

Type: filter

No description

Arguments: is_multisite() && $include_other, $include_other

103. snapshot_queue_fileset_preprocess

Type: filter

No description

Arguments: $this->detect_large_files($files, $chunk), $chunk

104. snapshot_queue_fileset_reject_oversized

Type: filter

No description

Arguments: false, $file, $size, $chunk

105. snapshot_queue_fileset_filesize_threshold

Type: filter

No description

Arguments: $threshold

106. snapshot_queue_fileset_reject_oversized

Type: filter

No description

Arguments: false, $file, $size, $chunk

107. snapshot_queue_fileset_filesize_threshold

Type: filter

No description

Arguments: $threshold

108. {$this->get_filter('is_wpmu_hosting')}

Type: filter

No description

Arguments: $is_wpmu_hosting

109. snapshot_model_transfer_part_size_increment

Type: filter

Multipart transfer part size, in bytes

Arguments: $increment, $this->get_type(), $this

Arguments:

  • $increment - int
    Transfer part size.

  • $type - string
    Transfer type.

  • $transfer - object
    Transfer implementation object.

110. snapshot_model_bflister_paths_limit

Type: filter

No description

Arguments: $limit