WP Mail Logging icon
Email & Marketing

WP Mail Logging hooks reference

  • By Syed Balkhi
  • v1.17.1
  • Updated

WP Mail Logging 1.17.1 has 7 actions and 19 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 WP Mail Logging fires an action
add_action( 'upgrader_process_complete', function( $object, $options ) {
	// Your code runs here.
}, 10, 2 );

// Change a value WP Mail Logging is about to use
add_filter( 'months_dropdown_results', function( $months, $post_type ) {
	// Change $months here.
	return $months;
}, 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

  • src/inc/class-wp-list-table.php line 304
    /**
     * Filter the list table Bulk Actions drop-down.
     */
    apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );
  • src/inc/class-wp-list-table.php line 661
    /**
     * Filter the list table sortable columns for a specific screen.
     */
    apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns );
  • src/inc/class-wp-list-table.php line 399
    /**
     * Filter the 'Months' drop-down results.
     */
    apply_filters( 'months_dropdown_results', $months, $post_type );
  • src/inc/Helpers/PluginSilentUpgrader.php line 512
    /**
     * Filter whether the upgrader cleared the destination.
     */
    apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] );
  • src/inc/Helpers/PluginSilentUpgrader.php line 103
    /**
     * Filter the package options before running an update.
     */
    apply_filters( 'upgrader_package_options', $options );
  • src/inc/Helpers/PluginSilentUpgrader.php line 569
    /**
     * Filter the installation response after the installation has finished.
     */
    apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );
  • src/inc/Helpers/PluginSilentUpgrader.php line 290
    /**
     * Filters whether to return the package.
     */
    apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra );
  • src/inc/Helpers/PluginSilentUpgrader.php line 435
    /**
     * Filter the install response before the installation has started.
     */
    apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] );
  • src/inc/Helpers/PluginSilentUpgrader.php line 232
    /**
     * Fire when the upgrader process is complete.
     */
    do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );
  • src/inc/Helpers/PluginSilentUpgrader.php line 469
    /**
     * Filter the source file location for the upgrade package.
     */
    apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] );
  • src/inc/class-wp-list-table.php line 257
    /**
     * Filter the list of available list table views.
     */
    apply_filters( "views_{$this->screen->id}", $views );
  • src/inc/Admin/EmailLogsTab.php line 414
    /**
     * Filters the strings to be localized and used in JS.
     */
    apply_filters( 'wp_mail_logging_admin_logs_localize_strings', [ 'ajaxurl' => admin_url( 'admin-ajax.php' ), ] );
  • src/WPML_OptionsManager.php line 556
    /**
     * Hook the tab content here.
     */
    do_action( 'wp_mail_logging_admin_tab_content', $tab );
  • src/WPML_OptionsManager.php line 547
    /**
     * Hook before the tab content.
     */
    do_action( 'wp_mail_logging_admin_tab_content_before', $tab );
  • src/inc/Admin/EmailLogsTab.php line 221
    /**
     * Filters the allowed HTML in the email HTML preview.
     */
    apply_filters( 'wp_mail_logging_allowed_html_email_html_preview', $allowed_html, $message );
  • src/inc/Admin/EmailLogsTab.php line 235
    /**
     * Filters the allowed protocols in the email HTML preview.
     */
    apply_filters( 'wp_mail_logging_allowed_protocols_email_html_preview', wp_allowed_protocols(), $message );
  • src/WPML_Plugin.php line 546
    /**
     * Filters mail data before it is logged.
     */
    apply_filters( 'wp_mail_logging_before_log_email', $mail_data );
  • src/inc/Admin/EmailLogsTab.php line 344
    /**
     * Filters the email preview's Content Security Policy directives.
     */
    apply_filters( 'wp_mail_logging_csp_email_html_preview', $directives, $remote_allowed, $mail_id );
  • src/inc/Admin/EmailLogsTab.php line 657
    /**
     * Fires after displaying the email logs content.
     */
    do_action( 'wp_mail_logging_email_logs_tab_display_after', $this->emailLogList );
  • src/inc/Admin/EmailLogsTab.php line 643
    /**
     * Fires before displaying the email logs content.
     */
    do_action( 'wp_mail_logging_email_logs_tab_display_before', $this->emailLogList );
  • src/WPML_Plugin.php line 425
    /**
     * Filter the jQuery Confirm localized strings.
     */
    apply_filters( 'wp_mail_logging_jquery_confirm_localized_strings', [ 'headsup' => esc_html__( 'Heads up!', 'wp-mail-logging' ), 'yes' => esc_html__( 'Yes', 'wp-mail-logging' ), 'cancel' => esc_html__( 'Cancel', 'wp-mail-logging' ), 'icon' => esc_url( $assets_url . '/images/font-awesome/exclamation-circle-solid-orange.svg' ), 'warning' => esc_html__( 'Warning!', 'wp-mail-logging' ), ] );
  • src/WPML_Plugin.php line 525
    /**
     * Log email data before being sent.
     */
    do_action( 'wp_mail_logging_log_email', $mailArray );
  • src/Renderer/Column/TimestampColumn.php line 20 · used in 2 places
    apply_filters( 'wpml_get_date_time_format', '' );
  • src/WPML_Plugin.php line 579
    apply_filters( 'wp_mail_content_type', 'text/html' );
  • src/inc/Helpers/PluginSilentUpgrader.php line 595
    do_action( 'wp_mail_logging_plugin_installed', $package );
  • src/WPML_Plugin.php line 342
    apply_filters( 'wp_mail_logging_view_settings_capability', 'manage_options' );

Generated from WP Mail Logging'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: