WP Activity Log 5.7.0 has 29 actions and 70 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WP Activity Log fires an action
add_action( 'wsal_auditlog_after_view', function( $events_list ) {
// Your code runs here.
}, 10, 1 );
// Change a value WP Activity Log is about to use
add_filter( 'wsal_additional_user_tooltip_content', function( $value, $user ) {
// Change $value here.
return $value;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * WSAL Filter: `wsal_additional_user_tooltip_content' */ apply_filters( 'wsal_additional_user_tooltip_content', '', $user ); -
wsal_auditlog_after_view
action/** * Hook: `wsal_auditlog_after_view` */ do_action( 'wsal_auditlog_after_view', $events_list ); -
wsal_auditlog_before_view
action/** * Hook: `wsal_auditlog_before_view` */ do_action( 'wsal_auditlog_before_view', $events_list ); -
wsal_ignore_user_meta_event
filter/** * WSAL Filter: `wsal_ignore_user_meta_event` */ apply_filters( 'wsal_ignore_user_meta_event', false, $meta_key, $meta_value, $object_id ); -
wsal_search_filters_list
action/** * Action: `wsal_search_filters_list` */ do_action( 'wsal_search_filters_list', 'top' ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_post_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_url", $url ); -
/** * Number of seconds to sleep between batches. Defaults to 0 seconds, minimum * 0. */ apply_filters( "{$this->identifier}_seconds_between_batches", apply_filters($this->prefix . '_seconds_between_batches', 0) ); -
{$this->identifier}_wp_die
filter/** * Should wp_die be used? */ apply_filters( "{$this->identifier}_wp_die", \true ); -
/** * Number of seconds to sleep between batches. Defaults to 0 seconds, minimum * 0. */ apply_filters( "{$this->prefix}_seconds_between_batches", 0 ); -
{WSAL_PREFIX}logging_enabled
filter/** * Enables / Disables the logging for the plugin. */ apply_filters( "{WSAL_PREFIX}logging_enabled", true ); -
mwpal_extension_tabs
filter/** * `mwpal_extension_tabs` */ apply_filters( 'mwpal_extension_tabs', $mwpal_extension_tabs, $extension_url ); -
/** * WSAL Filter: `wsal_before_post_meta_create_event` */ apply_filters( 'wsal_before_post_meta_create_event', true, $meta_key, $meta_value, $post ); -
/** * WSAL Filter: `wsal_before_post_meta_delete_event` */ apply_filters( 'wsal_before_post_meta_delete_event', true, $meta_key, $meta_value, $post, $meta_id ); -
/** * WSAL Filter: `wsal_before_post_meta_update_event` */ apply_filters( 'wsal_before_post_meta_update_event', true, $meta_key, $meta_value, self::$old_meta[ $meta_id ], $post, $meta_id ); -
wsal_connection_test_timeout
filter/** * Filters the timeout used when validating a MySQL connection. */ apply_filters( 'wsal_connection_test_timeout', $connect_timeout ); -
wsal_cron_hooks
filter/** * Gives an option to add hooks which must be enabled. */ apply_filters( 'wsal_cron_hooks', $hooks_array ); -
wsal_default_disabled_alerts
filter/** * Filters the list of alerts disabled by default. */ apply_filters( 'wsal_default_disabled_alerts', $alerts ); -
wsal_enable_notifications
filter/** * Since latest */ apply_filters( 'wsal_enable_notifications', $proceed ); -
wsal_event_data_before_log
filter/** * WSAL Filter: `wsal_event_data_before_log`. */ apply_filters( 'wsal_event_data_before_log', $event_data, $event_id ); -
wsal_event_id_before_log
filter/** * WSAL Filter: `wsal_event_id_before_log`. */ apply_filters( 'wsal_event_id_before_log', $event_id, $event_data ); -
/** * WSAL Filter: `wsal_event_metadata_definition`. */ apply_filters( 'wsal_event_metadata_definition', $metadata, $code ); -
/** * Get the email address to deliver the deactivation email to. */ apply_filters( 'wsal_filter_deactivation_email_delivery_address', get_bloginfo( 'admin_email' ) ); -
/** * Allow short-circuiting of the deactivation email sending by using this * filter to return true here instead of default false. */ apply_filters( 'wsal_filter_prevent_deactivation_email_delivery', false ); -
wsal_help_tabs
filter/** * Filter: `wsal_help_tabs` */ apply_filters( 'wsal_help_tabs', $wsal_help_tabs ); -
wsal_init
action/** * Action: `wsal_init` */ do_action( 'wsal_init', $wsal_class ); -
wsal_load_frontend_sensors
filter/** * WSAL Filter: `wsal_load_frontend_sensors` */ apply_filters( 'wsal_load_frontend_sensors', $sensors ); -
wsal_load_login_sensors
filter/** * WSAL Filter: `wsal_load_login_sensors` */ apply_filters( 'wsal_load_login_sensors', $sensors ); -
wsal_logged_alert
action/** * Fires immediately after an alert is logged. */ do_action( 'wsal_logged_alert', null, $type, $data, $date, $site_id ); -
/** * Allows meta formatting via filter if no match was found. */ apply_filters_deprecated( 'wsal_meta_formatter_custom_formatter', array( $value, $expression, ), 'WSAL 4.3.0', 'wsal_format_custom_meta' ); -
wsal_post_meta_updated
action/** * WSAL Action Hook. */ do_action( 'wsal_post_meta_updated', $meta_id, $object_id, (object) self::$old_meta, $meta_key, $meta_value ); -
wsal_setting_tabs
filter/** * Filter: `wsal_setting_tabs` */ apply_filters( 'wsal_setting_tabs', $wsal_setting_tabs ); -
wsal_skip_views
filter/** * Skipped Views. */ apply_filters( 'wsal_skip_views', $skip_views ); -
wsal_wizard_default_steps
filter/** * Filter: `Wizard Default Steps` */ apply_filters( 'wsal_wizard_default_steps', $wizard_steps ); -
apply_filters( 'wsal_database_timestamp_value', $timestamp, $metadata ); -
apply_filters( 'wsal_disable_user_switching_plugin_tracking', false ); -
apply_filters( 'wsal_save_settings_disabled_events', $disabled, self::get_alerts(), array(), $enabled ); -
wsal_settings_save_button
actiondo_action( 'wsal_settings_save_button' ); -
apply_filters( 'wsal_togglealerts_obsolete_events', $obsolete_events ); -
do_action( "{$this->identifier}_cancelled" ); -
do_action( "{$this->identifier}_completed" ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
{$this->identifier}_paused
actiondo_action( "{$this->identifier}_paused" ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
{$this->identifier}_resumed
actiondo_action( "{$this->identifier}_resumed" ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
admin_print_styles
actiondo_action( 'admin_print_styles' ); -
https_local_ssl_verify
filterapply_filters( 'https_local_ssl_verify', \false ); -
mainwp_activated_check
filterapply_filters( 'mainwp_activated_check', false ); -
apply_filters( 'mainwp_extension_enabled_check', WSAL_BASE_FILE_NAME ); -
mainwp_fetchurlauthed
filterapply_filters( 'mainwp_fetchurlauthed', WSAL_BASE_FILE_NAME, self::get_child_key(), $site_id, 'extra_excution', $post_data ); -
mainwp_getsites
filterapply_filters( 'mainwp_getsites', WSAL_BASE_FILE_NAME, MainWP_Addon::get_child_key(), null ); -
mainwp_pageheader_extensions
actiondo_action( 'mainwp_pageheader_extensions', __FILE__ ); -
wsal_add_site_filter
filterapply_filters( 'wsal_add_site_filter', false ); -
wsal_admin_after_head_title
actiondo_action( 'wsal_admin_after_head_title', self::$settings['id'] ); -
wsal_alert_formatters
filterapply_filters( 'wsal_alert_formatters', array( 'default' => Alert_Formatter_Configuration::get_default_html_configuration(), 'dashboard-widget' => Alert_Formatter_Configuration::set_configuration( array( 'js_in_links_allowed' => false, 'supports_metadata' => false, 'supports_hyperlinks' => false, ) ), ) ); -
wsal_alter_site_id
filterapply_filters( 'wsal_alter_site_id', $site_id ); -
apply_filters( 'wsal_append_dailynotification_email_content', $body, $events ); -
wsal_auditlog_row_user_data
filterapply_filters( 'wsal_auditlog_row_user_data', $row_user_data, $item['id'] ); -
wsal_cleanup
actiondo_action( 'wsal_cleanup', array() ); -
wsal_clear_reports
actiondo_action( 'wsal_clear_reports', array() ); -
wsal_custom_alerts_register
actiondo_action( 'wsal_custom_alerts_register', array() ); -
wsal_database_site_id_value
filterapply_filters( 'wsal_database_site_id_value', $site_id, $type, $data ); -
wsal_deprecated_event_ids
filterapply_filters( 'wsal_deprecated_event_ids', array( 0000, 0001, 0002, 0003, 0004, 0005, 2004, 2005, 2006, 2007, 2009, 2013, 2015, 2018, 2020, 2022, 2026, 2028, 2059, 2060, 2061, 2064, 2066, 2069, 2075, 2087, 2102, 2103, 2113, 2114, 2115, 2116, 2117, 2118, 5020, 5026, 2107, 2003, 2029, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2056, 2057, 2058, 2063, 2067, 2068, 2070, 2072, 2076, 2088, 2104, 2105, 5021, 5027, ... ); -
wsal_event_objects
filterapply_filters( 'wsal_event_objects', self::$objects_data ); -
wsal_event_type_data
filterapply_filters( 'wsal_event_type_data', self::$event_types ); -
wsal_format_custom_meta
filterapply_filters( 'wsal_format_custom_meta', $result, $expression, $configuration, $occurrence_id ); -
apply_filters( 'wsal_free_additional_event_links', array() ); -
wsal_generate_reports
actiondo_action( 'wsal_generate_reports', array() ); -
wsal_generate_reports_daily
actiondo_action( 'wsal_generate_reports_daily', array() ); -
do_action( 'wsal_generate_reports_monthly', array() ); -
do_action( 'wsal_generate_reports_quarterly', array() ); -
wsal_generate_reports_weekly
actiondo_action( 'wsal_generate_reports_weekly', array() ); -
wsal_get_site_details
filterapply_filters( 'wsal_get_site_details', $info, $item['site_id'], $item ); -
wsal_get_user_html
filterapply_filters( 'wsal_get_user_html', $uhtml, $item ); -
wsal_get_user_image
filterapply_filters( 'wsal_get_user_image', $image, $item ); -
apply_filters( 'wsal_ignored_custom_post_types', array_unique( array_merge( Settings_Helper::get_excluded_post_types(), self::IGNORED_POST_TYPES ) ) ); -
wsal_inspector_after_meta
actiondo_action( 'wsal_inspector_after_meta', $inspected_alert_id ); -
wsal_load_on_frontend
filterapply_filters( 'wsal_load_on_frontend', $should_load, $frontend_events ); -
wsal_login_screen_url
filterapply_filters( 'wsal_login_screen_url', $login ); -
wsal_main_view_site_id
filterapply_filters( 'wsal_main_view_site_id', $view_site_id ); -
apply_filters( 'wsal_modify_predefined_plugin_slug', $addon ); -
wsal_override_is_multisite
filterapply_filters( 'wsal_override_is_multisite', self::$is_multisite ); -
wsal_pointers_{$screen_id}
filterapply_filters( "wsal_pointers_{$screen_id}", array() ); -
wsal_prune
actiondo_action( 'wsal_prune', $count, implode( '; ', $queries ) ); -
wsal_request_logging_enabled
filterapply_filters( 'wsal_request_logging_enabled', false ); -
wsal_sensors_manager_add
actiondo_action( 'wsal_sensors_manager_add' ); -
do_action( 'wsal_togglealerts_append_content_to_toggle', $alert['code'] ); -
do_action( 'wsal_togglealerts_process_save_settings', $post_array ); -
apply_filters( 'wsal_togglealerts_sub_category_events', $subcat_alerts ); -
wsal_truncate_alert_value
filterapply_filters( 'wsal_truncate_alert_value', $value, $expression, $configuration['max_meta_value_length'], $configuration['ellipses_sequence'] ); -
wsal_user_can
filterapply_filters( 'wsal_user_can', $result, $user, $action );
Generated from WP Activity Log's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: