wp_mail_charset

wp_mail_charset

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_mail_charset') is found 1 times:

  • /wp-includes/pluggable.php line 501
    		 * @since 2.3.0
    		 *
    		 * @param string $charset Default email charset.
    		 */
    		$phpmailer->CharSet = apply_filters( 'wp_mail_charset', $charset );
    
    		// Set custom headers.
    		if ( ! empty( $headers ) ) {
    			foreach ( (array) $headers as $name => $content ) {
    				// Only add custom headers not added automatically by PHPMailer.
    				if ( ! in_array( $name, array( 'MIME-Version', 'X-Mailer' ), true ) ) {