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.
// 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
-
/** * Filter the list table Bulk Actions drop-down. */ apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); -
/** * Filter the list table sortable columns for a specific screen. */ apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns ); -
months_dropdown_results
filter/** * Filter the 'Months' drop-down results. */ apply_filters( 'months_dropdown_results', $months, $post_type ); -
upgrader_clear_destination
filter/** * Filter whether the upgrader cleared the destination. */ apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] ); -
upgrader_package_options
filter/** * Filter the package options before running an update. */ apply_filters( 'upgrader_package_options', $options ); -
upgrader_post_install
filter/** * Filter the installation response after the installation has finished. */ apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result ); -
upgrader_pre_download
filter/** * Filters whether to return the package. */ apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra ); -
upgrader_pre_install
filter/** * Filter the install response before the installation has started. */ apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] ); -
upgrader_process_complete
action/** * Fire when the upgrader process is complete. */ do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); -
upgrader_source_selection
filter/** * Filter the source file location for the upgrade package. */ apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] ); -
views_{$this->screen->id}
filter/** * Filter the list of available list table views. */ apply_filters( "views_{$this->screen->id}", $views ); -
/** * 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' ), ] ); -
/** * Hook the tab content here. */ do_action( 'wp_mail_logging_admin_tab_content', $tab ); -
/** * Hook before the tab content. */ do_action( 'wp_mail_logging_admin_tab_content_before', $tab ); -
/** * Filters the allowed HTML in the email HTML preview. */ apply_filters( 'wp_mail_logging_allowed_html_email_html_preview', $allowed_html, $message ); -
/** * Filters the allowed protocols in the email HTML preview. */ apply_filters( 'wp_mail_logging_allowed_protocols_email_html_preview', wp_allowed_protocols(), $message ); -
/** * Filters mail data before it is logged. */ apply_filters( 'wp_mail_logging_before_log_email', $mail_data ); -
/** * Filters the email preview's Content Security Policy directives. */ apply_filters( 'wp_mail_logging_csp_email_html_preview', $directives, $remote_allowed, $mail_id ); -
/** * Fires after displaying the email logs content. */ do_action( 'wp_mail_logging_email_logs_tab_display_after', $this->emailLogList ); -
/** * Fires before displaying the email logs content. */ do_action( 'wp_mail_logging_email_logs_tab_display_before', $this->emailLogList ); -
/** * 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' ), ] ); -
wp_mail_logging_log_email
action/** * Log email data before being sent. */ do_action( 'wp_mail_logging_log_email', $mailArray ); -
wpml_get_date_time_format
filterapply_filters( 'wpml_get_date_time_format', '' ); -
wp_mail_content_type
filterapply_filters( 'wp_mail_content_type', 'text/html' ); -
do_action( 'wp_mail_logging_plugin_installed', $package ); -
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: