wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_wp_mail › Les Filtres WordPress

Depuis6.9.0
Dépréciéen/a
› apply_filters( 'pre_wp_mail', null, $atts )
Paramètres: (2)
  • () return Short-circuit return value.
    Requis: Oui
  • () atts { Array of the `wp_mail()` arguments. @type string|string[] $to Array or comma-separated list of email addresses to send message. @type string $subject Email subject. @type string $message Message contents. @type string|string[] $headers Additional headers. @type string|string[] $attachments Paths to files to attach. @type string|string[] $embeds Paths to files to embed. }
    Requis: Oui
Défini(e) dans:
Codex:

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 the email was successfully sent.




Source

$pre_wp_mail = apply_filters( 'pre_wp_mail', null, $atts );