wp_mail

wp_mail

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('wp_mail') is found 1 times:

  • /wp-includes/pluggable.php line 192
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    *     @type string|string[] $headers     Additional headers.
     *     @type string|string[] $attachments Paths to files to attach.
     * }
     */
    $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );
     
    /**
     * Filters whether to preempt sending an email.
     *
     * Returning a non-null value will short-circuit {@see wp_mail()}, returning
     * that value instead. A boolean return value should be used to indicate whether

See this hook used in plugins: