filtrod 6.9.0
wp_mail_embed_args
Opis — z kodu źródłowego
Filters the arguments for PHPMailer's addEmbeddedImage() method.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | { An array of arguments for <code>addEmbeddedImage()</code>. @type string $path The path to the file. @type string $cid The Content-ID of the image. Default: The key in the embeds array. @type string $name The filename of the image. @type string $encoding The encoding of the image. Default: 'base64'. @type string $type The MIME type of the image. Default: empty string, which lets PHPMailer auto-detect. @type string $disposition The disposition of the image. Default: 'inline'. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_mail_embed_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_mail_embed_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii