NoorSMTP 1.0.0 has 13 actions and 11 filters, read directly from its source code on Nov 19, 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 NoorSMTP fires an action
add_action( 'noorsmtp_gmail_connect_card_top', function( $settings, $noorsmtp_is_connected ) {
// Your code runs here.
}, 10, 2 );
// Change a value NoorSMTP is about to use
add_filter( 'noorsmtp_active_mailer_slug', function( $slug ) {
// Change $slug here.
return $slug;
}, 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
-
/** * Filter the active mailer slug. */ apply_filters( 'noorsmtp_active_mailer_slug', $slug ); -
/** * Fires at the top of the Gmail API connect card, before the manual setup * guide/fields. NoorSMTP Pro (when an active license is present) hooks here to * render an alternative "One-Click Setup" section — this plugin has no * opinion on what, if anything, renders here. */ do_action( 'noorsmtp_gmail_connect_card_top', $settings, $noorsmtp_is_connected ); -
/** * Filter the capability required to view NoorSMTP admin pages. */ apply_filters( 'noorsmtp_manage_capability', 'manage_options' ); -
/** * Fires so marketplace extensions can self-register. */ do_action( 'noorsmtp_register_extension', $this ); -
/** * Allow custom screen rendering (e.g. Pro Features / Routing / Analytics / * License from Pro). */ apply_filters( 'noorsmtp_render_screen_body', false, $screen_slug, $settings ); -
/** * Fires after the mailer selection card, allowing extensions (such as NoorSMTP * Pro) to render additional configuration cards when active. */ do_action( 'noorsmtp_settings_cards', $settings, $modules ); -
/** * Filter PHPMailer SMTP connection options. */ apply_filters( 'noorsmtp_smtp_options', $default_ssl_options ); -
/** * Filter the debug message returned from a provider test. */ apply_filters( 'noorsmtp_test_provider_debug_message', $msg, $decoded, $mailer ); -
do_action( 'wp_mail_failed', $error ); -
apply_filters( 'noorsmtp_gmail_redirect_uri', $settings['gmail_redirect_uri'] ); -
do_action( 'noorsmtp_admin_header_notices' ); -
apply_filters( 'noorsmtp_is_mailer_configured', false, $slug, $settings ); -
apply_filters( 'noorsmtp_is_pro', false ); -
do_action( 'noorsmtp_log_bulk_actions' ); -
do_action( 'noorsmtp_log_modal_panels' ); -
do_action( 'noorsmtp_log_modal_tabs' ); -
do_action( 'noorsmtp_log_page_actions' ); -
do_action( 'noorsmtp_log_page_modals' ); -
apply_filters( 'noorsmtp_pro_is_active', false ); -
apply_filters( 'noorsmtp_render_custom_module_fields', false, $noorsmtp_module, $settings ); -
apply_filters( 'noorsmtp_test_provider_pre_check', null, $mailer, $current ); -
do_action( 'wp_mail_succeeded', $mail_result );
Generated from NoorSMTP'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: