DadsFam SMTP icon
Email & Marketing

DadsFam SMTP hooks reference

  • By dadsfam
  • v2.3.1
  • Updated

DadsFam SMTP 2.3.1 has 13 actions and 12 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.

functions.phpyour child theme
// Run your own code when DadsFam SMTP fires an action
add_action( 'dfsmtp_mail_logged', function( $retry_of, $data, $arg3 ) {
	// Your code runs here.
}, 10, 3 );

// Change a value DadsFam SMTP is about to use
add_filter( 'dfsmtp_export_config', function( $export ) {
	// Change $export here.
	return $export;
}, 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

  • includes/class-dfsmtp-mailer.php line 1309 · used in 4 places
    /**
     * This action is documented below.
     */
    do_action( 'dfsmtp_mail_logged', $this->retry_of, $data, true );
  • includes/class-dfsmtp-mailer.php line 350 · used in 2 places
    /**
     * Fires after the mailer has been configured. Add-ons use this for things like
     * a global BCC address.
     */
    do_action( 'dfsmtp_after_configure_mailer', $m, $s );
  • includes/admin/class-dfsmtp-admin.php line 760 · used in 2 places
    /**
     * Add-ons attach their own exportable data.
     */
    apply_filters( 'dfsmtp_export_config', $export );
  • includes/class-dfsmtp-operations.php line 577 · used in 2 places
    /**
     * Let the Pro add-on apply its own part of the bundle.
     */
    do_action( 'dfsmtp_import_config', $input );
  • includes/admin/class-dfsmtp-admin.php line 238 · used in 2 places
    /**
     * Add-ons sanitise and merge their own settings here.
     */
    apply_filters( 'dfsmtp_save_settings', $new, $existing );
  • includes/admin/class-dfsmtp-admin.php line 106
    /**
     * Lets add-ons register their own submenu pages under this menu.
     */
    do_action( 'dfsmtp_admin_menu', $parent );
  • includes/admin/pages/page-analytics.php line 136
    /**
     * Add-ons append analytics panels (open/click rates and similar).
     */
    do_action( 'dfsmtp_analytics_page_end', $dfsmtp_totals );
  • includes/brain/class-dfsmtp-brain-doctor.php line 132
    /**
     * Lets an add-on (PRO) add its own checks.
     */
    apply_filters( 'dfsmtp_brain_checks', array_values( array_filter( $checks ) ), $s, $deep );
  • includes/brain/class-dfsmtp-brain-dns.php line 207
    /**
     * Short-circuits a DNS lookup (used by tests, and by hosts whose PHP cannot
     * resolve). Return an array of dns_get_record()-shaped rows.
     */
    apply_filters( 'dfsmtp_brain_dns_pre', null, $name, $type );
  • includes/brain/class-dfsmtp-brain-errors.php line 1242
    /**
     * Filters the Error Reader's rules, so a rule for another provider can be
     * added. Rules are tried in order; the first that fits wins.
     */
    apply_filters( 'dfsmtp_brain_error_rules', $rules );
  • includes/admin/pages/page-changelog.php line 336
    /**
     * Add-ons may prepend their own release notes.
     */
    apply_filters( 'dfsmtp_changelog_entries', $dfsmtp_changelog );
  • includes/class-dfsmtp-mailer.php line 329
    /**
     * Allow an add-on to configure the mailer instead (e.g. smart routing). Return
     * true to signal it has been fully handled.
     */
    apply_filters( 'dfsmtp_configure_mailer', false, $m, $s );
  • dadsfam-email-smtp.php line 118
    /**
     * Fires once the free core is fully loaded. Add-ons should hook here rather
     * than at plugins_loaded, so they can rely on DFSMTP_Mailer and DFSMTP_Logger
     * already existing.
     */
    do_action( 'dfsmtp_loaded', $mailer );
  • includes/admin/class-dfsmtp-admin.php line 159
    /**
     * Add-ons can append their own data to the shared DFSMTP JS object.
     */
    apply_filters( 'dfsmtp_localize_admin', $data );
  • includes/admin/pages/page-logs.php line 31
    /**
     * Extra table columns contributed by add-ons.
     */
    apply_filters( 'dfsmtp_log_columns', array() );
  • includes/admin/class-dfsmtp-admin.php line 402
    /**
     * Filters the HTML shown in the email log viewer.
     */
    apply_filters( 'dfsmtp_log_preview_body', $html, $body );
  • includes/admin/pages/page-logs.php line 155
    /**
     * Add-ons echo one <td> per column they registered.
     */
    do_action( 'dfsmtp_log_row_cells', $dfsmtp_r );
  • includes/class-dfsmtp-mailer.php line 1411
    /**
     * Fires after a failed send has been logged. Add-ons use this for webhook
     * notifications and SMTP failover.
     */
    do_action( 'dfsmtp_mail_failed', $msg, $mail, $s, $log_id );
  • includes/admin/class-dfsmtp-admin.php line 977
    /**
     * Add-ons insert their own nav pills.
     */
    apply_filters( 'dfsmtp_nav_pages', $pages );
  • includes/class-dfsmtp-abilities.php line 383
    /**
     * Fires after the free SMTP abilities are registered, so the PRO add-on can
     * register its own abilities in the same category.
     */
    do_action( 'dfsmtp_register_abilities', self::CATEGORY );
  • includes/admin/pages/page-settings.php line 225
    /**
     * Add-ons render their own settings cards here.
     */
    do_action( 'dfsmtp_settings_page_end', $dfsmtp_s );
  • dadsfam-email-smtp.php line 171
    do_action( 'dfsmtp_activated' );
  • includes/admin/class-dfsmtp-admin.php line 161
    do_action( 'dfsmtp_admin_enqueue', $hook );
  • dadsfam-email-smtp.php line 180
    do_action( 'dfsmtp_deactivated' );
  • includes/admin/class-dfsmtp-admin.php line 56
    apply_filters( 'dfsmtp_is_pro', false );

Generated from DadsFam SMTP'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.

Plugin 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 this

Not 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: