apply_filters( 'sensei_send_emails', $send_email, $to, $subject, $message, $identifier, $replacements ) → {bool}
Filter Sensei's ability to send out emails.
Parameters:
Name | Type | Description |
---|---|---|
$send_email |
bool | Whether to send the email or not. |
$to |
mixed | The email address(es) to send the email to. |
$subject |
mixed | The subject of the email. |
$message |
mixed | The message of the email. |
$identifier |
string | Unique identifier of the email, not for legacy emails. |
$replacements |
array | The replacements values for the email, not for legacy emails. |
- Since:
- 1.24.0 The `$identifier` parameter was added.
- Source:
Returns:
Whether to send the email or not.
- Type
- bool