GD Mail Queue 4.4 has 38 actions and 35 filters, read directly from its source code on Nov 18, 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 GD Mail Queue fires an action
add_action( 'check_ajax_referer', function( $action, $result ) {
// Your code runs here.
}, 10, 2 );
// Change a value GD Mail Queue is about to use
add_filter( 'gdmaq_admin_internal_settings', 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
-
apply_filters( "{$this->base}_{$this->scope}_settings_get", $exit, $name, $group ); -
apply_filters( 'gdmaq_admin_internal_settings', array( 'basic' => array( 'intercept' => array( 'name' => __( 'Intercept WP Mail', 'gd-mail-queue' ), 'settings' => array( new d4pSettingElement( 'settings', 'intercept', __( 'Intercept', 'gd-mail-queue' ), __( 'This is the main entry point for the plugin, it has to be enabled so that the plugin can automatically handle all wp_mail requests and decide if they need to be queued and turned into HT... ); -
do_action( "{$this->base}_{$this->scope}_settings_init" ); -
do_action( "{$this->base}_{$this->scope}_settings_loaded" ); -
do_action( "{$this->base}_settings_init" ); -
do_action( "{$this->base}_settings_loaded" ); -
do_action( "{$this->plugin_prefix}_admin_help_tabs", $this ); -
do_action( "{$this->plugin_prefix}_load_admin_page_{$this->page}" ); -
{$this->plugin_prefix}_load_admin_page_{$this->page}_{$this->panel}
action Copy link Customise this hookdo_action( "{$this->plugin_prefix}_load_admin_page_{$this->page}_{$this->panel}" ); -
apply_filters( "{$this->plugin_prefix}admin_help_sidebar_links", array( 'home' => '<a target="_blank" href="https://plugins.dev4press.com/'.$this->plugin.'/">'.__("Home Page", "d4plib").'</a>', 'kb' => '<a target="_blank" href="https://support.dev4press.com/kb/product/'.$this->plugin.'/">'.__("Knowledge Base", "d4plib").'</a>', 'forum' => '<a target="_blank" href="https://support.dev4press.com/forums/forum/plugins/'.$this->plugin.'/">'.__("Support Forum", "d... ); -
apply_filters( "{$this->prefix()}_customizer_get_option_value_{$name}", $value ); -
apply_filters( "{$this->widget_base}_visible_{$instance['_hook']}", $visible, $this ); -
do_action( 'check_ajax_referer', $action, $result ); -
apply_filters( 'd4p_sanitize_file_path', $filename, $filename_raw ); -
apply_filters( 'd4p_sanitize_file_path_chars', array( "?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", "%", "+", chr(0) ), $filename_raw ); -
do_action( 'd4p_settings_group_bottom', $setting, $group ); -
do_action( 'd4p_settings_group_top', $setting, $group ); -
do_action( 'gdmaq_admin_getback_handler' ); -
apply_filters( 'gdmaq_admin_grid_log_column_value', $value, $column_name, $item ); -
do_action( 'gdmaq_admin_grid_log_filter' ); -
do_action( 'gdmaq_admin_init' ); -
apply_filters( 'gdmaq_admin_message_text', '', $msg ); -
apply_filters( "gdmaq_admin_panel_{$this->page}", $path ); -
do_action( 'gdmaq_admin_panel_bottom' ); -
do_action( 'gdmaq_admin_panel_top' ); -
do_action( 'gdmaq_admin_postback_handler' ); -
apply_filters( 'gdmaq_cron_daily_maintenance_job_hour', 4 ); -
apply_filters( 'gdmaq_email_paused', false ); -
do_action( 'gdmaq_email_type_detection_registration_ended' ); -
do_action( 'gdmaq_email_type_detection_registration_started' ); -
apply_filters( 'gdmaq_email_type_detection_supported_types_list', array( 'gdmaq_email_test' => _x( 'GD Mail Queue: Email Test', 'Email Detection Type', 'gd-mail-queue' ), 'gdmaq_queue_test' => _x( 'GD Mail Queue: Queue Test', 'Email Detection Type', 'gd-mail-queue' ), 'gdmaq_notify_overview_daily' => _x( 'GD Mail Queue: Daily Overview Digest', 'Email Detection Type', 'gd-mail-queue' ), 'gdmaq_notify_overview_weekly' => _x( 'GD Mail Queue: Weekly Overview Dige... ); -
apply_filters( 'gdmaq_htmlfy_generate_preheader', $output, $preheader, $subject, $body, $this->preheader, $this->preheader_limit ); -
apply_filters( 'gdmaq_htmlfy_poweredby', '<a href="https://plugins.dev4press.com/gd-mail-queue/">GD Mail Queue plugin for WordPress by Dev4Press</a>' ); -
apply_filters( 'gdmaq_htmlfy_process_args', $args, $content, $subject ); -
apply_filters( 'gdmaq_htmlfy_process_tags', $tags, $args, $content, $subject ); -
do_action( "gdmaq_load_admin_page_{$this->page}" ); -
do_action( "gdmaq_load_admin_page_{$this->page}_{$this->panel}" ); -
do_action( "gdmaq_load_engine_{$this->engine}" ); -
do_action( "gdmaq_load_service_{$this->mode}" ); -
do_action( 'gdmaq_load_settings' ); -
apply_filters( 'gdmaq_mail_to_queue_args', $args ); -
apply_filters( 'gdmaq_mail_to_queue_content_processing', true ); -
apply_filters( 'gdmaq_mail_to_queue_html_processing', false ); -
apply_filters( 'gdmaq_mailer_add_to_queue', $add, $this->copy(), $this->get_current_type() ); -
apply_filters( 'gdmaq_mailer_email_plain_text_check_tags', array( "<html", "<body", "<head", "</head>", "</html>", "</body>" ) ); -
do_action_ref_array( 'gdmaq_mailer_init', array( &$this ) ); -
apply_filters( 'gdmaq_mailer_is_email_plain_text', $is_plain_text, $phpmailer ); -
apply_filters( 'gdmaq_mailer_phpmailer_change_from_priority', 100000 ); -
apply_filters( 'gdmaq_mailer_phpmailer_change_reply_to_priority', 100000 ); -
apply_filters( 'gdmaq_mailer_phpmailer_core_smtp_priority', 1000000 ); -
apply_filters( 'gdmaq_mailer_phpmailer_engine_smtp_priority', 1000000 ); -
do_action_ref_array( 'gdmaq_mailer_phpmailer_htmlfy', array( &$phpmailer ) ); -
apply_filters( 'gdmaq_mailer_phpmailer_intercept_priority', 100000000 ); -
do_action( 'gdmaq_mailer_phpmailer_to_log', $phpmailer, $_add_to_queue ? 'queue' : 'mail' ); -
apply_filters( 'gdmaq_phpmailer_is_eligible', $is, $this, $queue ); -
do_action_ref_array( 'gdmaq_phpmailer_prepare_engine', array( &$this->phpmailer ) ); -
do_action_ref_array( 'gdmaq_phpmailer_ready_to_send', array( &$phpmailer ) ); -
do_action( 'gdmaq_phpmailer_register_services' ); -
apply_filters( 'gdmaq_plain_text_preprocess_html', d4p_kses_expanded_list_of_tags() ); -
apply_filters( 'gdmaq_plain_text_strip_html', gdmaq_kses_strip_everything() ); -
do_action( 'gdmaq_plugin_init' ); -
apply_filters( 'gdmaq_queue_paused', false ); -
do_action_ref_array( 'gdmaq_queue_phpmailer_init', array( &$this->phpmailer ), $email ); -
do_action( 'gdmaq_register_engines' ); -
do_action( 'gdmaq_register_templates' ); -
do_action( "gdmaq_save_settings_{$panel}" ); -
apply_filters( 'gdmaq_save_settings_value', $value, $name, $group ); -
do_action( 'gdmaq_saved_the_settings' ); -
apply_filters( 'plugin_locale', get_user_locale(), $this->plugin ); -
do_action( 'qdmaq_queue_phpmailer_email_send', $status, $email, $this->phpmailer ); -
apply_filters( 'the_content', $content );
Generated from GD Mail Queue's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: