WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 576 | * An array of arguments for `addEmbeddedImage()`. |
| 577 | * @type string $path The path to the file. |
| 578 | * @type string $cid The Content-ID of the image. Default: The key in the embeds array. |
| 579 | * @type string $name The filename of the image. |
| 580 | * @type string $encoding The encoding of the image. Default: 'base64'. |
| 581 | * @type string $type The MIME type of the image. Default: empty string, which lets PHPMailer auto-detect. |
| 582 | * @type string $disposition The disposition of the image. Default: 'inline'. |
| 583 | * } |
| 584 | */ |
| 585 | $embed_args = apply_filters( |
| 586 | 'wp_mail_embed_args', |
| 587 | array( |
| 588 | 'path' => $embed_path, |
| 589 | 'cid' => (string) $key, |
| 590 | 'name' => basename( $embed_path ), |
| 591 | 'encoding' => 'base64', |
| 592 | 'type' => '', |
| 593 | 'disposition' => 'inline', |
| 594 | ) |