WC_Email::get_content_type()
Get email content type.
Method of the class: WC_Email{}
Hooks from the method
Return
String
.
Usage
$WC_Email = new WC_Email(); $WC_Email->get_content_type( $default_content_type );
- $default_content_type(string)
- Default wp_mail() content type.
Default: ''
WC_Email::get_content_type() WC Email::get content type code WC 8.7.0
public function get_content_type( $default_content_type = '' ) { switch ( $this->get_email_type() ) { case 'html': $content_type = 'text/html'; break; case 'multipart': $content_type = 'multipart/alternative'; break; default: $content_type = 'text/plain'; break; } return apply_filters( 'woocommerce_email_content_type', $content_type, $this, $default_content_type ); }