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

do_action('wp_mail') is found 1 times:

  • /wp-includes/pluggable.php line 192
    		 *     @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: