Send Emails 2.7.0 has 25 actions and 40 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 Send Emails fires an action
add_action( 'sende_purchase', function( $contact, $context ) {
// Your code runs here.
}, 10, 2 );
// Change a value Send Emails is about to use
add_filter( 'sende_admin_editor_screen_ids', 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
-
/** * This action is documented in includes/Integrations/WooCommerce.php */ do_action( 'sende_purchase', $contact, $context ); -
/** * Fires after a campaign was created or updated through the REST API. */ do_action( 'sende_rest_campaign_saved', $campaign, $request ); -
/** * Fires after a contact is created or updated through the REST API. */ do_action( 'sende_rest_contact_saved', $contact, $request ); -
/** * Fires after the plugin is initialized. */ do_action( 'send_emails_init', $this ); -
/** * Fires when a transitionable attribute changes. */ do_action( "sende_{$this->object_type}_{$attribute}_transition", $this, $from, $to ); -
/** * Filter the screens that load the email editor (core TinyMCE + media library) * used by the EmailEditor component. */ apply_filters( 'sende_admin_editor_screen_ids', array( 'send-emails_page_sende-compose', 'send-emails_page_sende-campaigns', 'send-emails_page_sende-automations' ) ); -
/** * Filter the available promotional/announcement notices. */ apply_filters( 'sende_admin_notices', $notices ); -
/** * Filter the plugin admin screen IDs. */ apply_filters( 'sende_admin_screen_ids', array( 'toplevel_page_send-emails', 'send-emails_page_sende-compose', 'send-emails_page_sende-campaigns', 'send-emails_page_sende-contacts', 'send-emails_page_sende-tags', 'send-emails_page_sende-automations', 'send-emails_page_sende-logs', 'send-emails_page_sende-integrations', 'send-emails_page_send-emails-settings', ) ); -
/** * Filter the admin pages that show the right-hand sidebar (Pro promo, support, * other plugins). Keep list pages out. */ apply_filters( 'sende_admin_sidebar_pages', array( 'settings', 'compose', 'integrations' ) ); -
/** * Filter the click-to-purchase attribution window in days. */ apply_filters( 'sende_attribution_window', 7 ); -
/** * Fires when an automation run completes. */ do_action( 'sende_automation_run_completed', $run, $contact ); -
/** * Filter the available automation triggers. */ apply_filters( 'sende_automation_triggers', array( 'form_submitted' => __( 'Form submitted', 'send-emails' ), 'tag_added' => __( 'Tag added to contact', 'send-emails' ), 'contact_created' => __( 'Contact created', 'send-emails' ), 'contact_subscribed' => __( 'Contact subscribed', 'send-emails' ), 'user_registered' => __( 'User registered', 'send-emails' ), 'order_placed' => __( 'Order placed (Woo/EDD)', 'send-emails' ), 'first_purchase' ... ); -
/** * Filter how many emails a sending campaign may send this tick. */ apply_filters( 'sende_campaign_batch_limit', $limit, $campaign ); -
/** * Filter a campaign's subject and body for one recipient, before merge tags * and the unsubscribe footer are applied. */ apply_filters( 'sende_campaign_content', array( 'subject' => (string) $campaign->subject, 'body' => (string) $campaign->body, ), $campaign, $contact ); -
/** * Filter the normalized campaign recipient query. */ apply_filters( 'sende_campaign_recipient_query', $query, $recipients ); -
/** * Filter the JOIN/WHERE SQL fragments that select campaign recipients. */ apply_filters( 'sende_campaign_recipient_sql', array( $join, $where ), $query ); -
/** * Filter the recipient types a campaign may target. */ apply_filters( 'sende_campaign_recipient_types', array( 'all', 'tags', 'contacts' ) ); -
/** * Fires when a campaign finished sending. */ do_action( 'sende_campaign_sent', $campaign ); -
/** * Filter the campaign statuses. */ apply_filters( 'sende_campaign_statuses', array( 'draft' => __( 'Draft', 'send-emails' ), 'scheduled' => __( 'Scheduled', 'send-emails' ), 'sending' => __( 'Sending', 'send-emails' ), 'sent' => __( 'Sent', 'send-emails' ), 'paused' => __( 'Paused', 'send-emails' ), ) ); -
/** * Filter whether migrated v1.x contact posts and tag terms are deleted. */ apply_filters( 'sende_cleanup_legacy_data', true ); -
/** * Fires when a tag is added to a contact. */ do_action( 'sende_contact_tag_added', $this, $tag_id ); -
/** * Fires when a tag is removed from a contact. */ do_action( 'sende_contact_tag_removed', $this, $tag_id ); -
/** * Fires when a contact unsubscribes via the public link. */ do_action( 'sende_contact_unsubscribed', $contact ); -
/** * Fires when the v1.x CPT migration is finished. */ do_action( 'sende_cpt_migration_done' ); -
/** * Fires after an object is deleted. */ do_action( "sende_deleted_{$this->object_type}", $this ); -
/** * Fires when a tracked email click is recorded. */ do_action( 'sende_email_clicked', $email, $url ); -
/** * Fires after an email send fails. */ do_action( 'sende_email_failed', $email ); -
/** * Fires when a tracked email open is recorded. */ do_action( 'sende_email_opened', $email ); -
/** * Fires after an email is sent and logged. */ do_action( 'sende_email_sent', $email ); -
/** * Filter the email parameters before sending. */ apply_filters( 'sende_email_to', $args['to'] ); -
/** * Filter the registered form integration classes. */ apply_filters( 'sende_form_integrations', array( Forming::class, BeautyForms::class, ContactForm7::class, WPForms::class, GravityForms::class, NinjaForms::class, FluentForms::class, Formidable::class, WordPressCore::class, WooCommerce::class, EDD::class, ) ); -
/** * Fires after a form submission created or updated a contact. */ do_action( 'sende_form_submitted', $contact, $data, $this->id, (string) $form_id ); -
/** * Fires after an object is inserted. */ do_action( "sende_inserted_{$this->object_type}", $this ); -
/** * Fires when migrated v1.x data has been removed. */ do_action( 'sende_legacy_cleanup_done' ); -
/** * Filter the available merge tags and their values. */ apply_filters( 'sende_merge_tags', $values, $contact ); -
/** * Filter how often stale notice options are cleaned up. */ apply_filters( 'sende_notices_cleanup_interval', 30 * DAY_IN_SECONDS ); -
/** * Fires before an object is deleted. */ do_action( "sende_pre_delete_{$this->object_type}", $this ); -
/** * Fires before an object is inserted. */ do_action( "sende_pre_insert_{$this->object_type}", $this ); -
/** * Fires before an object is updated. */ do_action( "sende_pre_update_{$this->object_type}", $this, $dirty ); -
/** * Filter how many campaign emails are sent per queue tick. */ apply_filters( 'sende_queue_batch_size', 20 ); -
/** * Filter the REST controllers registered by the plugin. */ apply_filters( 'sende_rest_controllers', array( API\Contacts::class, API\Tags::class, API\Settings::class, API\Emails::class, API\Campaigns::class, API\Automations::class, API\Integrations::class, API\Tracking::class, ) ); -
/** * Filter the automation REST response data. */ apply_filters( 'sende_rest_prepare_automation', $data, $automation ); -
/** * Filter the campaign REST response data. */ apply_filters( 'sende_rest_prepare_campaign', $data, $campaign ); -
/** * Filter the contact REST response data. */ apply_filters( 'sende_rest_prepare_contact', $data, $contact ); -
/** * Filter the email log REST response data. */ apply_filters( 'sende_rest_prepare_email', $data, $email ); -
/** * Filter the tag REST response data. */ apply_filters( 'sende_rest_prepare_tag', $data, $tag ); -
/** * Filter the registered settings fields and their sanitizers. */ apply_filters( 'sende_settings_fields', array( 'from_name' => 'sanitize_text_field', 'from_email' => 'sanitize_email', 'emails_per_hour' => 'absint', 'enable_open_tracking' => 'rest_sanitize_boolean', 'enable_click_tracking' => 'rest_sanitize_boolean', 'delete_data' => 'rest_sanitize_boolean', ) ); -
/** * Fires after an object is updated. */ do_action( "sende_updated_{$this->object_type}", $this, $dirty ); -
do_action( "sende_{$this->object_type}_{$attribute}_{$to}", $this, $from ); -
apply_filters( "sende_{$this->object_type}_query_args", wp_parse_args( $args, $defaults ) ); -
apply_filters( 'sende_admin_app_data', array( 'version' => SENDEMAILS_VERSION, 'statuses' => Contact::get_statuses(), 'emailStatuses' => Email::get_statuses(), 'campaignStatuses' => Campaign::get_statuses(), 'mergeTags' => array_keys( \SendEmails\Emails\MergeTags::get_values() ), 'mappableFields' => \SendEmails\Integrations\FormIntegration::get_mappable_fields(), 'automation' => array( 'triggers' => \SendEmails\Automations\Engine::g... ); -
apply_filters( 'sende_countries_list', array( 'AF' => __( 'Afghanistan', 'send-emails' ), 'AX' => __( 'Ã…land Islands', 'send-emails' ), 'AL' => __( 'Albania', 'send-emails' ), 'DZ' => __( 'Algeria', 'send-emails' ), 'AS' => __( 'American Samoa', 'send-emails' ), 'AD' => __( 'Andorra', 'send-emails' ), 'AO' => __( 'Angola', 'send-emails' ), 'AI' => __( 'Anguilla', 'send-emails' ), 'AQ' => __( 'Antarctica', 'send-emails' ), 'AG' => _... ); -
apply_filters( 'sende_email_attachments', $attachments ); -
apply_filters( 'sende_email_body', $args['message'] ); -
apply_filters( 'sende_email_headers', $headers ); -
apply_filters( 'sende_email_subject', $args['subject'] ); -
apply_filters( 'sende_manager_capability', 'manage_options' ); -
apply_filters_deprecated( 'sendemails_email_attachments', array( $attachments ), '2.6.0', 'sende_email_attachments' ); -
apply_filters_deprecated( 'sendemails_email_body', array( $message ), '2.6.0', 'sende_email_body' ); -
apply_filters_deprecated( 'sendemails_email_headers', array( $headers ), '2.6.0', 'sende_email_headers' ); -
apply_filters_deprecated( 'sendemails_email_subject', array( $subject ), '2.6.0', 'sende_email_subject' ); -
apply_filters_deprecated( 'sendemails_email_to', array( $to ), '2.6.0', 'sende_email_to' ); -
do_action_deprecated( 'sendemails_form_submitted', array( $contact, $data, $this->id, (string) $form_id ), '2.6.0', 'sende_form_submitted' ); -
apply_filters_deprecated( 'sendemails_merge_tags', array( $values, $contact ), '2.6.0', 'sende_merge_tags' );
Generated from Send Emails'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: