WordPress at Your Fingertips
function is not described

WC_Email::get_content_type() public WC 1.0

Get email content type.

{} It's a 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: ''

Code of WC_Email::get_content_type() WC 5.9.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 );
}