wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_wp_mail › WordPress Filter Hooks

Da5.7.0
Deprecaton/a
apply_filters( 'pre_wp_mail', null, $atts )
Parametri: (2)
  • (null|bool) $return Short-circuit return value.
    Richiesto:
  • (array) $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. }
    Richiesto:
Definito a:
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.





Sorgenti

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