Simple History icon
Analytics & Tracking

Simple History hooks reference

  • By Pär Thernström
  • v5.36.0
  • Updated

Simple History 5.36.0 has 38 actions and 170 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.

functions.phpyour child theme
// Run your own code when Simple History fires an action
add_action( 'simple_history/add_custom_dropin', function( $simple_history ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Simple History is about to use
add_filter( 'simple_history/email_summary_report/show_upsell', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

  • inc/services/class-email-report-service.php line 1001 · used in 3 places
    /**
     * This filter is documented in templates/email-summary-report.php
     */
    apply_filters( 'simple_history/email_summary_report/show_upsell', Helpers::show_promo_boxes() );
  • dropins/class-import-dropin.php line 432 · used in 2 places
    /**
     * Filter the post types to preview for auto-backfill.
     */
    apply_filters( 'simple_history/auto_backfill/post_types', $preview_post_types );
  • templates/email-summary-report.php line 31 · used in 2 places
    /**
     * Filter to add content after the core stats. Can be used by add-ons to add
     * content after the core stats.
     */
    apply_filters( 'simple_history/email_summary_report/content_after_core_stats', '' );
  • templates/email-summary-report.php line 22 · used in 2 places
    /**
     * Filter to show the main core stats.
     */
    apply_filters( 'simple_history/email_summary_report/show_main_core_stats', true );
  • templates/email-summary-report.php line 128 · used in 2 places
    /**
     * Filter whether to show the weekly tip.
     */
    apply_filters( 'simple_history/email_summary_report/show_tip', true );
  • inc/services/class-license-reminder-service.php line 109 · used in 2 places
    /**
     * Filter whether the license reminder card should be shown at all.
     */
    apply_filters( 'simple_history/license_reminder/should_show', true );
  • loggers/class-post-logger.php line 737 · used in 2 places
    /**
     * Modify the context saved. Same filter maybe_log_post_change() applies.
     */
    apply_filters( 'simple_history/post_logger/post_updated/context', $context, $post );
  • loggers/class-post-logger.php line 719 · used in 2 places
    /**
     * Filter to control logging. Same filter maybe_log_post_change() applies.
     */
    apply_filters( 'simple_history/post_logger/post_updated/ok_to_log', true, $post->post_status, $post->post_status, $post );
  • inc/class-wp-rest-events-controller.php line 1384 · used in 2 places
    /**
     * This filter is documented in loggers/class-logger.php
     */
    apply_filters( 'simple_history/row_header_output/display_ip_address', false, $item );
  • inc/services/class-stealth-mode.php line 311 · used in 2 places
    /**
     * Filters the list of allowed emails for Stealth Mode.
     */
    apply_filters( 'simple_history/stealth_mode_allowed_emails', $allowed_emails );
  • inc/class-helpers.php line 1430
    /**
     * Deprecated filter name, use `simple_history/db_purge_days_interval` instead.
     */
    apply_filters( 'simple_history_db_purge_days_interval', $days );
  • inc/class-helpers.php line 1474
    /**
     * Deprecated, use filter `simple_history/view_history_capability` instead.
     */
    apply_filters( 'simple_history_view_history_capability', $view_history_capability );
  • inc/class-helpers.php line 1658
    /**
     * Old filter name, use `simple_history/view_settings_capability` instead.
     */
    apply_filters( 'simple_history_view_settings_capability', $view_settings_capability );
  • inc/services/class-abilities-service.php line 110
    /**
     * Filter whether Simple History registers its abilities.
     */
    apply_filters( 'simple_history/abilities/enabled', true );
  • inc/services/class-network-menu-items.php line 101
    /**
     * Filter to control if admin bar shortcut should be added.
     */
    apply_filters( 'simple_history/add_admin_bar_menu_item', true );
  • inc/services/class-network-menu-items.php line 36
    /**
     * Filter to control if admin bar shortcut should be added
     */
    apply_filters( 'simple_history/add_admin_bar_network_menu_item', true );
  • inc/services/class-dropins-loader.php line 35
    /**
     * Fires after the list of dropins to load are populated. Can for example be
     * used by dropins can to add their own custom loggers.
     */
    do_action( 'simple_history/add_custom_dropin', $this->simple_history );
  • inc/services/class-loggers-loader.php line 45
    /**
     * Fires after the list of loggers to load are populated.
     */
    do_action( 'simple_history/add_custom_logger', $this->simple_history );
  • inc/class-simple-history.php line 225
    /**
     * Fires after the list of services to load are populated. Can be used to
     * register custom services.
     */
    do_action( 'simple_history/add_custom_service', $this );
  • dropins/class-quick-view-dropin.php line 124
    /**
     * Filters the data passed to the admin bar Quick View JavaScript.
     */
    apply_filters( 'simple_history/admin_bar/localize_data', [ 'adminPageUrl' => Helpers::get_history_admin_url(), 'viewSettingsUrl' => Helpers::get_settings_page_url(), 'currentUserCanViewHistory' => Helpers::current_user_can_view_history(), 'currentPostId' => is_singular() ? get_queried_object_id() : 0, 'currentPostTitle' => is_singular() ? get_the_title() : '', ] );
  • inc/class-simple-history.php line 341
    /**
     * Similar to action WordPress action `admin_head`, but only fired from pages
     * with Simple History.
     */
    do_action( 'simple_history/admin_head', $this );
  • inc/class-helpers.php line 1819
    /**
     * Filter to control the placement of Simple History in the Admin Menu. Valid
     * locations: - 'top' for placement close to dashboard at top of main menu -
     * 'bottom' for placement near below settings - 'inside_tools' for placement
     * inside the tools menu - 'inside_dashboard' for placement inside the
     * dashboard menu
     */
    apply_filters( 'simple_history/admin_menu_location', $setting );
  • inc/services/class-admin-pages.php line 278
    /**
     * Fires after the page header in Simple History admin pages. Use this to
     * output content right after the header.
     */
    do_action( 'simple_history/admin_page/after_header' );
  • inc/services/class-admin-pages.php line 206
    /**
     * Fires inside the page header, just before the closing tag.
     */
    do_action( 'simple_history/admin_page/header_end' );
  • inc/services/class-admin-pages.php line 186
    /**
     * Fires inside the title group, after badges.
     */
    do_action( 'simple_history/admin_page/title_group_end' );
  • inc/class-simple-history.php line 136
    /**
     * Fires after Simple History has done it's init stuff.
     */
    do_action( 'simple_history/after_init', $this );
  • inc/services/class-ai-initiator-detector.php line 159
    /**
     * Filter the detected AI initiator origin.
     */
    apply_filters( 'simple_history/ai_initiator_origin', $result );
  • inc/services/class-auto-backfill-service.php line 145
    /**
     * Filter the limit for auto-backfill per post type.
     */
    apply_filters( 'simple_history/auto_backfill/limit', self::DEFAULT_LIMIT );
  • inc/services/class-import-handler.php line 81
    /**
     * Filter to enable manual backfill functionality.
     */
    apply_filters( 'simple_history/backfill/can_run_manual_import', false );
  • dropins/class-import-dropin.php line 285
    /**
     * Action hook for adding manual backfill controls.
     */
    do_action( 'simple_history/backfill/manual_backfill_section', $this, $retention_days );
  • dropins/class-import-dropin.php line 294
    /**
     * Filter whether to show the premium teaser for manual backfill.
     */
    apply_filters( 'simple_history/backfill/show_premium_teaser', true );
  • inc/class-simple-history.php line 118
    /**
     * Fires before Simple History does it's init stuff.
     */
    do_action( 'simple_history/before_init', $this );
  • loggers/class-categories-logger.php line 393
    /**
     * Filter taxonomies to not log changes to.
     */
    apply_filters( 'simple_history/categories_logger/skip_taxonomies', $taxonomies_to_skip );
  • inc/channels/class-channels-manager.php line 76
    /**
     * Fired when an channel is registered.
     */
    do_action( 'simple_history/channels/registered', $channel, $this );
  • inc/services/class-channels-service.php line 39
    /**
     * Fires after the channels service is loaded.
     */
    do_action( 'simple_history/channels/service_loaded', $this->channels_manager, $this );
  • loggers/class-comments-logger.php line 275
    /**
     * Filter option to include spam or not in the gui By default spam is not
     * included, because it can fill the log with too much events
     */
    apply_filters( 'simple_history/comments_logger/include_spam', $include_spam );
  • loggers/class-comments-logger.php line 682
    /**
     * Filter the keys to show in the comments details output.
     */
    apply_filters( 'simple_history/comments_logger/row_details_plugin_info_keys', $arr_plugin_keys );
  • inc/class-simple-history.php line 602
    /**
     * Filter the array with class names of core dropins.
     */
    apply_filters( 'simple_history/core_dropins', $dropins );
  • inc/class-simple-history.php line 563
    /**
     * Filter the array with class names of core loggers.
     */
    apply_filters( 'simple_history/core_loggers', $loggers );
  • inc/class-simple-history.php line 206
    /**
     * Filter the array with class names of core services.
     */
    apply_filters( 'simple_history/core_services', $services );
  • inc/class-helpers.php line 1613
    /**
     * Filter whether the current request may see IP addresses.
     */
    apply_filters( 'simple_history/current_user_can_view_ip_addresses', $can_view );
  • inc/class-helpers.php line 1334
    /**
     * Filter the pager size setting for the dashboard.
     */
    apply_filters( 'simple_history/dashboard_pager_size', $pager_size );
  • inc/services/class-setup-purge-db-cron.php line 87
    /**
     * Filter to change day of week to purge db on. Default is 7 (sunday).
     */
    apply_filters( 'simple_history/day_of_week_to_purge_db', $day_of_week_to_purge_db );
  • inc/class-helpers.php line 1456
    /**
     * Filter to modify number of days of history to keep. Default is 30 days for
     * new installs, 60 days for existing installs.
     */
    apply_filters( 'simple_history/db_purge_days_interval', $days );
  • inc/class-simple-history.php line 379
    /**
     * Filter db table used for simple history events
     */
    apply_filters( 'simple_history/db_table', $this::$dbtable );
  • inc/services/class-setup-purge-db-cron.php line 160
    /**
     * Fires after a batch of events have been purged from the database. Note: This
     * fires for each batch of 100,000 rows.
     */
    do_action( 'simple_history/db/events_purged', $days, $num_rows_purged_in_batch );
  • inc/services/class-setup-purge-db-cron.php line 174
    /**
     * Fires after all events have been purged from the database. This fires once
     * when the entire purge operation is complete. Total rows can be 0 if no
     * events were purged.
     */
    do_action( 'simple_history/db/purge_done', $days, $total_rows );
  • inc/class-helpers.php line 1925
    /**
     * Filters the field name fragments that are masked before being stored.
     */
    apply_filters( 'simple_history/detective_mode/sensitive_field_names', $field_names );
  • inc/services/class-dropins-loader.php line 98
    /**
     * Filter to completely skip loading of a dropin.
     */
    apply_filters( 'simple_history/dropin/instantiate', $instantiate_dropin, $dropin_short_name, $one_dropin_class );
  • inc/services/class-dropins-loader.php line 87
    /**
     * Filter to completely skip instantiate a dropin.
     */
    apply_filters( "simple_history/dropin/instantiate_{$dropin_short_name}", $instantiate_dropin );
  • dropins/class-sidebar-dropin.php line 110
    /**
     * Allows to output HTML in sidebar
     */
    do_action( 'simple_history/dropin/sidebar/sidebar_html' );
  • inc/services/class-history-insights-sidebar-service.php line 100
    /**
     * Fires inside the stats sidebar box, after the headline but before any
     * content.
     */
    do_action( 'simple_history/dropin/stats/before_content' );
  • inc/services/class-history-insights-sidebar-service.php line 95
    /**
     * Fires inside the stats sidebar box, after the headline but before any
     * content.
     */
    do_action( 'simple_history/dropin/stats/today' );
  • inc/services/class-dropins-loader.php line 46
    /**
     * Filter the array with dropin classnames to instantiate.
     */
    apply_filters( 'simple_history/dropins_to_instantiate', $dropins_to_instantiate );
  • inc/services/class-dropins-loader.php line 129
    /**
     * Fires after all dropins are instantiated.
     */
    do_action( 'simple_history/dropins/instantiated', $this->simple_history );
  • templates/email-summary-report.php line 242
    /**
     * Filter to add content after the logo, e.g. a "Premium" badge.
     */
    apply_filters( 'simple_history/email_summary_report/logo_after', '' );
  • inc/services/class-tips-service.php line 423
    /**
     * Filter the tip text shown in the weekly summary email.
     */
    apply_filters( 'simple_history/email_summary_report/tip_text', $tip_text, $args );
  • inc/services/class-email-report-service.php line 1059
    /**
     * Filter the teaser text shown under the intro. Return an empty string to hide
     * the teaser.
     */
    apply_filters( 'simple_history/email_summary_report/top_teaser_text', $top_teaser_text, $args );
  • inc/services/class-scripts-and-templates.php line 119
    /**
     * Fires when the admin scripts have been enqueued. Only fires on any of the
     * pages where Simple History is used.
     */
    do_action( 'simple_history/enqueue_admin_scripts', $this->simple_history );
  • inc/services/class-experimental-features-page.php line 104
    /**
     * Hook for experimental features to render their UI.
     */
    do_action( 'simple_history/experimental_features/render', $this->simple_history );
  • inc/services/class-failed-login-limit-service.php line 192
    /**
     * Filter to enable or disable the core failed login limit.
     */
    apply_filters( 'simple_history/failed_login_limit/enabled', true );
  • inc/services/class-failed-login-limit-service.php line 62
    /**
     * Filter the maximum number of consecutive failed login attempts to log.
     */
    apply_filters( 'simple_history/failed_login_limit/threshold', self::DEFAULT_THRESHOLD );
  • dropins/class-rss-dropin.php line 615
    /**
     * Fires after the RSS address has been output.
     */
    do_action( 'simple_history/feeds/after_address', $this );
  • dropins/class-rss-dropin.php line 175
    /**
     * Filters the text for the RSS enable checkbox.
     */
    apply_filters( 'simple_history/feeds/enable_feeds_checkbox_text', __( 'Enable feed', 'simple-history' ) );
  • dropins/class-rss-dropin.php line 678
    /**
     * Allow premium to add additional feed information.
     */
    do_action( 'simple_history/feeds/settings_section_description' );
  • dropins/class-rss-dropin.php line 72
    /**
     * Filters the title for the feeds section headline.
     */
    apply_filters( 'simple_history/feeds/settings_section_title', _x( 'RSS and JSON feeds', 'feeds settings headline', 'simple-history' ) );
  • inc/channels/class-file-channel.php line 671
    /**
     * Filter the folder token used for log directory naming.
     */
    apply_filters( 'simple_history/file_channel/folder_token', $token );
  • inc/channels/class-file-channel.php line 110
    /**
     * Filter available formatters for the file channel.
     */
    apply_filters( 'simple_history/file_channel/formatters', $formatters );
  • inc/channels/class-file-channel.php line 634
    /**
     * Filter the log directory path.
     */
    apply_filters( 'simple_history/file_channel/log_directory', $default_directory );
  • inc/services/class-stealth-mode.php line 388
    /**
     * Filter to enable/disable full stealth mode.
     */
    apply_filters( 'simple_history/full_stealth_mode_enabled', $enabled_via_constant );
  • inc/class-simple-history.php line 861
    /**
     * Filter the plain text output for a log row.
     */
    apply_filters( 'simple_history/get_log_row_plain_text_output/output', $logger->get_log_row_plain_text_output( $row ), $row, $logger );
  • loggers/class-logger.php line 264
    /**
     * Filter the format for the user output
     */
    apply_filters( 'simple_history/header_initiator_html_existing_user', $tmpl_initiator_html );
  • loggers/class-logger.php line 400
    /**
     * Filter how many seconds as most that can pass since an event occurred to
     * show "just now" instead of exact date
     */
    apply_filters( 'simple_history/header_just_now_max_time', $time_ago_just_now_max_time );
  • inc/services/class-status-box-service.php line 55
    /**
     * Filter the header settings and status bar items.
     */
    apply_filters( 'simple_history/header_status/items', $items );
  • inc/services/class-admin-pages.php line 108
    /**
     * Fires after the gui div. (Bad name, since it's actually at the bottom of the
     * gui div.)
     */
    do_action( 'simple_history/history_page/after_gui', $this->simple_history );
  • inc/services/class-admin-pages.php line 86
    /**
     * Fires before the gui div.
     */
    do_action( 'simple_history/history_page/before_gui', $this->simple_history );
  • inc/services/class-admin-pages.php line 98
    /**
     * Fires at top of the gui div wrap.
     */
    do_action( 'simple_history/history_page/gui_wrap_top', $this->simple_history );
  • inc/class-wp-rest-user-card-controller.php line 251
    /**
     * Filters the initiator card action links.
     */
    apply_filters( 'simple_history/initiator_card/actions', $actions, $type );
  • inc/class-wp-rest-user-card-controller.php line 273
    /**
     * Filters the initiator card detail items.
     */
    apply_filters( 'simple_history/initiator_card/details', $details, $type );
  • inc/class-helpers.php line 265
    /**
     * Filters the array with HTTP headers that may contain user IP address.
     */
    apply_filters( 'simple_history/ip_number_header_names', $headers );
  • inc/class-helpers.php line 2567
    /**
     * Filter whether the current request should be treated as a REST API request.
     */
    apply_filters( 'simple_history/is_rest_request', $is_rest_request );
  • inc/class-helpers.php line 2410
    /**
     * Filter whether the current request should be treated as a WP-CLI request.
     */
    apply_filters( 'simple_history/is_wp_cli', $is_wp_cli );
  • loggers/class-logger.php line 1306
    /**
     * Filter arguments passed to log function
     */
    apply_filters( 'simple_history/log_arguments', $level, $message, $context, $this );
  • loggers/class-user-logger.php line 327
    /**
     * Filter whether failed application password authentication attempts should be
     * logged.
     */
    apply_filters( 'simple_history/log_failed_app_password_auth', Helpers::experimental_features_is_enabled() );
  • inc/class-simple-history.php line 1290
    /**
     * Filter what keys to show from the row context.
     */
    apply_filters( 'simple_history/log_html_output_details_table/context_keys_to_show', $logRowContextKeysToShow, $one_log_row );
  • inc/class-simple-history.php line 1210
    /**
     * Filter what keys to show from one_log_row
     */
    apply_filters( 'simple_history/log_html_output_details_table/row_keys_to_show', $logRowKeysToShow, $one_log_row );
  • loggers/class-logger.php line 1409
    /**
     * Filters the context to store for this event/row
     */
    apply_filters( 'simple_history/log_insert_context', $context, $data, $this );
  • loggers/class-logger.php line 1371
    /**
     * Filter data to be saved to db.
     */
    apply_filters( 'simple_history/log_insert_data', $data );
  • loggers/class-logger.php line 1422
    /**
     * Filter that lets user modify both data and context before logging.
     */
    apply_filters( 'simple_history/log_insert_data_and_context', array( $data, $context ), $this );
  • inc/class-log-query.php line 2840
    /**
     * Filter the default boxes to output in the sidebar
     */
    apply_filters( 'simple_history/log_query_inner_where_array', $inner_where, $args );
  • inc/class-simple-history.php line 954
    /**
     * Filter the event details group output for a logger that has returned an
     * Event_Details_Group.
     */
    apply_filters( "simple_history/log_row_details_output-{$logger->get_slug()}", $logger_details_output, $row );
  • loggers/class-media-logger.php line 607
    /**
     * Applied here by hand because this method used to return this group on its
     * own. Simple_History only runs the filter for a returned group, not for a
     * container, so building the container below would otherwise drop a filter
     * third parties may already hook.
     */
    apply_filters( "simple_history/log_row_details_output-{$this->get_slug()}", $changed_values_group, $row );
  • loggers/class-logger.php line 1242
    /**
     * Filter that makes it possible to shortcut the logging of a message. Return
     * bool false to cancel logging.
     */
    apply_filters( 'simple_history/log/do_log', true, $level, $message, $context, $this );
  • loggers/class-logger.php line 1268
    /**
     * Easy shortcut method to disable logging of messages from a specific logger.
     */
    apply_filters( "simple_history/log/do_log/{$this->get_slug()}", true );
  • loggers/class-logger.php line 1475
    /**
     * Fired after an event has been logged.
     */
    do_action( 'simple_history/log/inserted', $context, $data, $this );
  • inc/class-simple-history.php line 388
    /**
     * Filter table name for contexts.
     */
    apply_filters( 'simple_history/logger_db_table_contexts', $this::$dbtable_contexts );
  • loggers/class-logger.php line 2139
    /**
     * Filter the default enabled state of a logger.
     */
    apply_filters( 'simple_history/logger/enabled', $is_enabled_by_default, $this->get_slug() );
  • inc/class-helpers.php line 162
    /**
     * Filters the context used to create the message from the message template.
     * Can be used to modify the variables sent to the message template.
     */
    apply_filters( 'simple_history/logger/interpolate/context', $context, $message, $row );
  • inc/services/class-loggers-loader.php line 141
    /**
     * Fired when all loggers are instantiated.
     */
    do_action( 'simple_history/loggers_loaded' );
  • inc/class-simple-history.php line 1550
    /**
     * Filter loggers that user can read.
     */
    apply_filters( 'simple_history/loggers_user_can_read', $arr_loggers_user_can_view, $user_id );
  • inc/class-simple-history.php line 1528
    /**
     * Filters who can read/view the messages from a single logger.
     */
    apply_filters( 'simple_history/loggers_user_can_read/can_read_single_logger', $user_can_read_logger, $one_logger['instance'], $user_id );
  • inc/services/class-loggers-loader.php line 148
    /**
     * Fired when all loggers are instantiated.
     */
    do_action( 'simple_history/loggers/instantiated', $this->simple_history );
  • inc/class-simple-history.php line 1360
    /**
     * Filter to modify classes added to item li element
     */
    apply_filters( 'simple_history/logrowhtmloutput/classes', $classes );
  • loggers/class-mail-failure-logger.php line 122
    /**
     * Filters whether failed emails are logged as events.
     */
    apply_filters( 'simple_history/mail_failures/log_events', true );
  • inc/class-wp-rest-searchoptions-controller.php line 178
    /**
     * Filters the Google Maps API key that is used to render a static map image.
     */
    apply_filters( 'simple_history/maps_api_key', '' );
  • inc/class-menu-manager.php line 54
    /**
     * Filter pages returned.
     */
    apply_filters( 'simple_history/menu_manager/get_pages', $pages );
  • inc/class-helpers.php line 1311
    /**
     * Filter the pager size setting for the history page
     */
    apply_filters( 'simple_history/page_pager_size', $pager_size );
  • inc/class-helpers.php line 1302
    /**
     * Filter the pager size setting
     */
    apply_filters( 'simple_history/pager_size', $pager_size );
  • inc/class-helpers.php line 1343
    /**
     * Filter the pager size setting
     */
    apply_filters( 'simple_history/pager_size_dashboard', $pager_size );
  • loggers/class-plugin-logger.php line 1616
    /**
     * Allow plugins (or Simple History itself) to add extra details to the plugin
     * update details output.
     */
    apply_filters( "simple_history/pluginlogger/plugin_updated_details/{$plugin_slug}", '' );
  • loggers/class-plugin-logger.php line 1623
    /**
     * Allow plugins (or Simple History itself) to add extra details to the plugin
     * update details output.
     */
    apply_filters( "simple_history/pluginlogger/plugin_updated_details/{$plugin_slug}/{$plugin_version}", $extra_details );
  • loggers/class-post-logger.php line 1783
    /**
     * Filter to control context sent to the diff output.
     */
    apply_filters( 'simple_history/post_logger/context', $context, $old_data, $new_data, $old_meta, $new_meta );
  • loggers/class-post-logger.php line 2966
    /**
     * Filters the keys to diff.
     */
    apply_filters( 'simple_history/post_logger/keys_to_diff', $arr_keys_to_diff );
  • loggers/class-post-logger.php line 2868
    /**
     * Filters the label for a key.
     */
    apply_filters( 'simple_history/post_logger/label_for_key', $label, $key, $context );
  • loggers/class-post-logger.php line 1844
    /**
     * Filters the array with custom field keys to ignore.
     */
    apply_filters( 'simple_history/post_logger/meta_keys_to_ignore', $arr_meta_keys_to_ignore, $context, $old_meta, $new_meta );
  • loggers/class-post-logger.php line 1148
    /**
     * Filter to control logging.
     */
    apply_filters( 'simple_history/post_logger/post_deleted/ok_to_log', $ok_to_log, $post_id );
  • loggers/class-post-logger.php line 270
    /**
     * Filter the post types we are logging information from.
     */
    apply_filters( 'simple_history/post_logger/post_types', get_post_types( array(), 'object' ) );
  • loggers/class-post-logger.php line 2530
    /**
     * Modify the formatted diff output of a saved/modified post.
     */
    apply_filters( 'simple_history/post_logger/post_updated/diff_table_output', $diff_table_output, $context );
  • loggers/class-post-logger.php line 1206
    /**
     * Filter to log what post types not to log
     */
    apply_filters( 'simple_history/post_logger/skip_posttypes', $skip_posttypes );
  • inc/class-helpers.php line 877
    /**
     * Filter to control if ip addresses should be anonymized or not. Defaults to
     * true, meaning that any IP address is anonymized.
     */
    apply_filters( 'simple_history/privacy/anonymize_ip_address', true );
  • inc/services/class-privacy-data-handler.php line 303
    /**
     * Filters the context keys used to find events where a user is the
     * subject/target, for the privacy data export.
     */
    apply_filters( 'simple_history/privacy/subject_context_keys', $keys );
  • inc/services/class-setup-purge-db-cron.php line 278
    /**
     * Filter the SQL WHERE clause used when purging old events.
     */
    apply_filters( 'simple_history/purge_db_where', $where, $days, $table_name );
  • loggers/class-logger.php line 886
    /**
     * Filter generated output for details
     */
    apply_filters( 'simple_history/row_details_output', $html, $row );
  • loggers/class-logger.php line 498
    /**
     * Filter the output of the date section of the header.
     */
    apply_filters( 'simple_history/row_header_date_output', $date_html, $row );
  • loggers/class-logger.php line 347
    /**
     * Filter generated html for the initiator row header html
     */
    apply_filters( 'simple_history/row_header_initiator_output', $initiator_html, $row );
  • loggers/class-logger.php line 713
    /**
     * Filter generated html for the log row header.
     */
    apply_filters( 'simple_history/row_header_output', $html, $row );
  • loggers/class-logger.php line 690
    /**
     * Filter template used to glue together markup the log row header.
     */
    apply_filters( 'simple_history/row_header_output/template', $template, $row );
  • loggers/class-logger.php line 777
    /**
     * Filter generated output for plain text output
     */
    apply_filters( 'simple_history/row_plain_text_output', $html, $row );
  • loggers/class-logger.php line 858
    /**
     * Filter generated output for row image (sender image)
     */
    apply_filters( 'simple_history/row_sender_image_output', $sender_image_html, $row );
  • dropins/class-rss-dropin.php line 343
    /**
     * Filters the arguments passed to `SimpleHistoryLogQuery()` when fetching the
     * RSS feed
     */
    apply_filters( 'simple_history/rss_feed_args', $args );
  • dropins/class-rss-dropin.php line 242
    /**
     * Filter if RSS feed should be shown or not. Default is true.
     */
    apply_filters( 'simple_history/rss_feed_show', $rss_show );
  • dropins/class-rss-dropin.php line 133
    /**
     * Fires after RSS secret has been updated.
     */
    do_action( 'simple_history/rss_feed/secret_updated' );
  • inc/class-wp-rest-searchoptions-controller.php line 214
    /**
     * Filters the search options data before returning it.
     */
    apply_filters( 'simple_history/search_options_data', $data );
  • inc/class-simple-history.php line 236
    /**
     * Filter the array with service classnames to instantiate.
     */
    apply_filters( 'simple_history/services_to_load', $services_to_load );
  • inc/class-simple-history.php line 249
    /**
     * Fires after all services are loaded.
     */
    do_action( 'simple_history/services/loaded', $this );
  • inc/services/class-setup-settings-page.php line 315
    /**
     * Fires before the general settings section output. Can be used to output
     * content in the general settings section.
     */
    do_action( 'simple_history/settings_page/general_section_output' );
  • loggers/class-simple-history-logger.php line 164
    /**
     * Filter the tracked options rendered as "On"/"Off" (instead of 1/0) in the
     * "Modified settings" log details. Add-ons add their own checkbox options
     * here.
     */
    apply_filters( 'simple_history/settings/boolean_options', $boolean_settings );
  • loggers/class-simple-history-logger.php line 243
    /**
     * Filter the list of tracked option names logged as "changed" without storing
     * their before/after value.
     */
    apply_filters( 'simple_history/settings/changed_only_options', [] );
  • inc/services/class-setup-settings-page.php line 756
    /**
     * Fires after the log has been cleared using the "Clear log now" button on the
     * settings page.
     */
    do_action( 'simple_history/settings/log_cleared', $num_rows_deleted );
  • loggers/class-simple-history-logger.php line 224
    /**
     * Filter the list of tracked option names whose values are never stored in the
     * log.
     */
    apply_filters( 'simple_history/settings/redacted_options', $core_redacted );
  • loggers/class-simple-history-logger.php line 136
    /**
     * Filter the map of option keys that Simple History logs when changed.
     */
    apply_filters( 'simple_history/settings/tracked_options', $core_settings );
  • inc/class-helpers.php line 1779
    /**
     * Filter if Simple History should be shown as a page in the main admin menu.
     */
    apply_filters( 'simple_history/show_admin_menu_page', true );
  • inc/class-helpers.php line 758
    /**
     * Filter to control if avatars should be displayed, even if the show_avatars
     * option is set to false in WordPress discussion settings.
     */
    apply_filters( 'simple_history/show_avatars', $args['force_display'] );
  • inc/services/class-dashboard-widget.php line 35
    /**
     * Filter to determine if history page should be added to page below dashboard
     * or not
     */
    apply_filters( 'simple_history/show_dashboard_widget', true );
  • inc/class-helpers.php line 1838
    /**
     * Filter if Simple History should be shown in the admin bar.
     */
    apply_filters( 'simple_history/show_in_admin_bar', $setting );
  • inc/class-helpers.php line 1745
    /**
     * Filter if Simple History should be shown on the dashboard.
     */
    apply_filters( 'simple_history/show_on_dashboard', $show_on_dashboard );
  • inc/class-helpers.php line 2800
    /**
     * Filter to determine if promo boxes should be shown.
     */
    apply_filters( 'simple_history/show_promo_boxes', $show_promo_boxes );
  • inc/services/class-tips-service.php line 284
    /**
     * Filter the list of sidebar tips.
     */
    apply_filters( 'simple_history/sidebar_tips', $texts );
  • inc/services/class-tips-service.php line 471
    /**
     * Filter whether to show the sidebar tip.
     */
    apply_filters( 'simple_history/sidebar_tips/show', true );
  • dropins/class-sidebar-dropin.php line 82
    /**
     * Filter the default boxes to output in the sidebar
     */
    apply_filters( 'simple_history/SidebarDropin/default_sidebar_boxes', $arrBoxes );
  • loggers/class-logger.php line 982
    /**
     * Filter so plugins etc. can shortcut logging
     */
    apply_filters( 'simple_history/simple_logger/log_message_key', true, $this->get_slug(), $messageKey, $SimpleLoggerLogLevelsLevel, $context );
  • inc/services/class-tips-service.php line 229
    /**
     * Filter the structured list of tips.
     */
    apply_filters( 'simple_history/tips', $tips );
  • inc/class-helpers.php line 1380
    /**
     * Allows controlling who can manually clear the log. When this is true then
     * the "Clear"-button in shown in the settings. When this is false then no
     * button is shown.
     */
    apply_filters( 'simple_history/user_can_clear_log', current_user_can( self::get_view_settings_capability() ) );
  • inc/class-helpers.php line 1545
    /**
     * Filters whether the current user may see other users' login, email and
     * roles.
     */
    apply_filters( 'simple_history/user_can_view_user_pii', current_user_can( 'list_users' ) );
  • inc/class-wp-rest-user-card-controller.php line 208
    /**
     * Filters the user card action links.
     */
    apply_filters( 'simple_history/user_card/actions', $actions, $user );
  • inc/class-wp-rest-user-card-controller.php line 173
    /**
     * Filters the user card detail items.
     */
    apply_filters( 'simple_history/user_card/details', $details, $user );
  • loggers/class-user-logger.php line 1241
    /**
     * Filter whether a login is waiting for a second factor.
     */
    apply_filters( 'simple_history/user_logger/login_pending_second_factor', false, $user );
  • loggers/class-user-logger.php line 1270
    /**
     * Filter how a login that completed on `wp_login` used two-factor.
     */
    apply_filters( 'simple_history/user_logger/two_factor_login', null, $user );
  • inc/class-helpers.php line 1494
    /**
     * Filter the capability required to view main simple history page, with the
     * activity feed. Default capability is "edit_pages".
     */
    apply_filters( 'simple_history/view_history_capability', $view_history_capability );
  • inc/class-helpers.php line 1582
    /**
     * Filters the capability required to see IP addresses in the log.
     */
    apply_filters( 'simple_history/view_ip_address_capability', 'manage_options' );
  • inc/class-helpers.php line 1678
    /**
     * Filters the capability required to view the settings page.
     */
    apply_filters( 'simple_history/view_settings_capability', $view_settings_capability );
  • inc/services/class-whats-new-service.php line 394
    /**
     * Filter the billing state that decides the billing message.
     */
    apply_filters( 'simple_history/whats_new/billing_state', $state );
  • inc/services/class-whats-new-service.php line 461
    /**
     * Filter the lapsed-license data behind the sidebar card.
     */
    apply_filters( 'simple_history/whats_new/lapse', $lapse );
  • inc/services/class-whats-new-service.php line 162
    /**
     * Filter the plugins the "What's new" box reports on.
     */
    apply_filters( 'simple_history/whats_new/plugins', $plugins );
  • inc/class-helpers.php line 2706
    /**
     * Filter the interval for how often the script checks for new rows.
     */
    apply_filters( 'SimpleHistoryNewRowsNotifier/interval', 10000 );
  • inc/services/class-stealth-mode.php line 441
    /**
     * Filters a plugin dependency's slug before matching to the WordPress.org slug
     * format.
     */
    apply_filters( 'wp_plugin_dependencies_slug', $slug );
  • inc/services/class-auto-backfill-service.php line 131 · used in 2 places
    do_action( 'simple_history/backfill/completed', $status );
  • inc/services/class-setup-purge-db-cron.php line 98
    apply_filters( 'simple_history_allow_db_purge', $do_purge_history );
  • inc/class-helpers.php line 1760
    apply_filters( 'simple_history_show_as_page', $setting );
  • inc/class-helpers.php line 1831
    apply_filters( 'simple_history_show_in_admin_bar', $setting );
  • inc/class-helpers.php line 1738
    apply_filters( 'simple_history_show_on_dashboard', $show_on_dashboard );
  • inc/services/class-setup-settings-page.php line 121
    apply_filters( 'simple_history_show_settings_page', true );
  • inc/services/class-admin-pages.php line 135
    do_action( 'simple_history/admin_page/header_output' );
  • inc/services/class-setup-purge-db-cron.php line 99
    apply_filters( 'simple_history/allow_db_purge', $do_purge_history );
  • inc/channels/class-channels-manager.php line 31
    do_action( 'simple_history/channels/register', $this );
  • inc/services/class-dashboard-widget.php line 55
    do_action( 'simple_history/dashboard/before_gui', $this );
  • inc/class-helpers.php line 1851
    apply_filters( 'simple_history/detective_mode_enabled', get_option( 'simple_history_detective_mode_enabled', 0 ) );
  • templates/email-summary-report-text.php line 122
    apply_filters( "simple_history/email_summary_report/section_content/{$section}", '', $args );
  • templates/email-summary-report.php line 565
    apply_filters( 'simple_history/email_summary_report/section_content/comments', '', $args );
  • templates/email-summary-report.php line 527
    apply_filters( 'simple_history/email_summary_report/section_content/media', '', $args );
  • templates/email-summary-report.php line 594
    apply_filters( 'simple_history/email_summary_report/section_content/notes', '', $args );
  • templates/email-summary-report.php line 661
    apply_filters( 'simple_history/email_summary_report/section_content/plugins', '', $args );
  • templates/email-summary-report.php line 498
    apply_filters( 'simple_history/email_summary_report/section_content/posts', '', $args );
  • templates/email-summary-report.php line 691
    apply_filters( 'simple_history/email_summary_report/section_content/themes', '', $args );
  • templates/email-summary-report.php line 631
    apply_filters( 'simple_history/email_summary_report/section_content/users', '', $args );
  • templates/email-summary-report.php line 711
    apply_filters( 'simple_history/email_summary_report/section_content/wordpress', '', $args );
  • inc/class-helpers.php line 2017
    apply_filters( 'simple_history/experimental_features_enabled', get_option( 'simple_history_experimental_features_enabled', 0 ) );
  • loggers/class-logger.php line 237
    apply_filters( 'simple_history/header_initiator_use_you', true );
  • loggers/class-logger.php line 384
    apply_filters( 'simple_history/header_time_ago_max_time', $time_ago_max_time );
  • loggers/class-logger.php line 1314
    apply_filters( 'simple_history/log_argument/context', $context, $level, $message, $this );
  • loggers/class-logger.php line 1322
    apply_filters( 'simple_history/log_argument/level', $level, $context, $message, $this );
  • loggers/class-logger.php line 1330
    apply_filters( 'simple_history/log_argument/message', $message, $level, $context, $this );
  • inc/class-simple-history.php line 1317
    apply_filters( 'simple_history/log_html_output_details_single/html_after_context_table', $more_details_html, $one_log_row );
  • inc/class-simple-history.php line 1147
    apply_filters( 'simple_history/log_html_output_details_single/html_before_context_table', $more_details_html, $one_log_row );
  • loggers/class-logger.php line 1287
    apply_filters( "simple_history/log/do_log/{$this->get_slug()}/{$message_key}", true );
  • inc/services/class-loggers-loader.php line 65
    apply_filters( 'simple_history/loggers_to_instantiate', $arr_loggers_to_instantiate );
  • loggers/class-plugin-logger.php line 1576
    apply_filters( 'simple_history/plugin_logger/row_details_plugin_info_keys', wp_list_pluck( $rows, 0 ) );
  • inc/class-helpers.php line 888
    apply_filters( 'simple_history/privacy/add_char_to_anonymized_ip_address', true );
  • inc/class-helpers.php line 2033
    apply_filters( 'simple_history/reactions_enabled', get_option( 'simple_history_reactions_enabled', '1' ) );
  • inc/class-wp-rest-events-controller.php line 1717
    apply_filters( 'simple_history/reactions/allowed_types', [ 'thumbsup' ] );
  • inc/services/class-setup-settings-page.php line 122
    apply_filters( 'simple_history/show_settings_page', $show_settings_page );
  • inc/services/class-stats-service.php line 184
    do_action( 'simple_history/stats/output_page_contents' );
  • loggers/class-user-logger.php line 1060
    apply_filters( 'simple_history/user_logger/plain_text_output_use_you', true );

Generated from Simple History'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: