Meow Mailer 0.3.5 has 4 actions and 15 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 Meow Mailer fires an action
add_action( 'phpmailer_init', function( $mail ) {
// Your code runs here.
}, 10, 1 );
// Change a value Meow Mailer is about to use
add_filter( 'mwmail_fallback_email', function( $email, $fallback ) {
// Change $email here.
return $email;
}, 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
-
/** * The email exactly as the fallback provider will receive it. */ apply_filters( 'mwmail_fallback_email', $email, $fallback ); -
/** * The envelope sender: the address a mail server returns bounces to, which can * differ from the visible From. Filterable so a plugin can give each message * its own bounce address (VERP and the like) without touching what recipients * see. */ apply_filters( 'mwmail_return_path', $email['return_path'] ?? '', $email ); -
/** * Whether to run `phpmailer_init` for this email. On by default: a plugin that * attaches an invoice this way has no other way in, and losing it silently is * never what anyone wanted. Return false to keep the hook out of the way. */ apply_filters( 'mwmail_run_phpmailer_init', true, $email ); -
apply_filters( "{$this->prefix}_meowapps_is_registered", false, $this->prefix ); -
do_action_ref_array( 'phpmailer_init', [ &$mail ] ); -
apply_filters( "{$this->prefix}_meowapps_status", null ); -
apply_filters( "{$this->prefix}_meowapps_version_info", null ); -
do_action( 'litespeed_control_set_nocache', 'Meow Apps API must not be cached.' ); -
apply_filters( 'meowapps_plugins_status', [] ); -
apply_filters( 'mwmail_alert_webhook', $payload, $event, $url ); -
apply_filters( 'mwmail_allow_setup', current_user_can( 'manage_options' ) ); -
apply_filters( 'mwmail_stored_attachment_days', 30 ); -
apply_filters( 'mwmail_stored_attachment_limit', 2 * MB_IN_BYTES ); -
apply_filters( 'wp_mail_charset', $charset ); -
apply_filters( 'wp_mail_content_type', $content_type ); -
do_action( 'wp_mail_failed', $result ); -
apply_filters( 'wp_mail_from', $from_email ); -
apply_filters( 'wp_mail_from_name', $from_name ); -
do_action( 'wp_mail_succeeded', [ 'to' => $email['to'], 'subject' => $email['subject'], 'message' => $email['message'], 'headers' => $email['headers_raw'], 'attachments' => $email['attachments'], ] );
Generated from Meow Mailer'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: