Authentic Sender 1.0.4 has 2 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 Authentic Sender fires an action
add_action( 'wp_mail_failed', function( $error ) {
// Your code runs here.
}, 10, 1 );
// Change a value Authentic Sender is about to use
add_filter( 'authenticsender_is_sensitive_mail', function( $value, $arg2, $subject, $content ) {
// Change $value here.
return $value;
}, 10, 4 );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 whether the current message is treated as sensitive mail. */ apply_filters( 'authenticsender_is_sensitive_mail', false, null, $subject, $content ); -
/** * Filter subject regex patterns that mark mail as sensitive. */ apply_filters( 'authenticsender_sensitive_subject_patterns', [ '/password\s*reset/i', '/reset\s*(your\s*)?password/i', '/password\s*recovery/i', '/password\s*changed/i', '/new\s*password/i', '/confirm.{0,40}(email|address)/i', '/(email|address).{0,40}(confirm|verification|verify)/i', '/verify.{0,40}(email|address)/i', '/two[-\s]?factor/i', '/\b2fa\b/i', '/one[-\s]?time\s*(pass|code|password)/i', '/magic\s*link/i', '/login\s*details/i', ] ); -
/** * Filter whether BCC should be skipped for the current message. */ apply_filters( 'authenticsender_skip_bcc', $skip, null ); -
/** * Filter whether private/reserved hosts are blocked for self-hosted UseSend. */ apply_filters( 'authenticsender_block_private_usesend_url', true, $base ); -
/** * Filter whether WordPress auth keys are treated as unique enough for * credential encryption. */ apply_filters( 'authenticsender_has_unique_auth_keys', true ); -
/** * Filter the subject stored for sensitive mail in the email log. */ apply_filters( 'authenticsender_redacted_log_subject', $redacted, $subject, $body ); -
/** * Filter whether sensitive mail should be skipped from the email log. */ apply_filters( 'authenticsender_skip_sensitive_log', false, $subject, $body ); -
/** * Filters the arguments used to build an embedded API attachment. */ apply_filters( 'wp_mail_embed_args', [ 'path' => $embed_path, 'cid' => (string) $key, 'name' => wp_basename( $embed_path ), 'encoding' => 'base64', 'type' => '', 'disposition' => 'inline', ] ); -
/** * Fires when an API send fails (mirrors wp_mail_failed). */ do_action( 'wp_mail_failed', new WP_Error( $result->get_error_code(), $result->get_error_message(), $mail_error_data ) ); -
/** * Fires when an API send succeeds (mirrors wp_mail_succeeded). */ do_action( 'wp_mail_succeeded', $atts ); -
apply_filters( 'wp_mail_content_type', $parsed['content_type'] ); -
apply_filters( 'wp_mail_from', $from_email ); -
apply_filters( 'wp_mail_from_name', $from_name );
Generated from Authentic Sender'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: