WordPress at Your Fingertips
function is not described

WC_API_XML_Handler::get_content_type() public WC 2.1

Get the content type for the response

{} It's a method of the class: WC_API_XML_Handler{}

No Hooks.

Return

String.

Usage

$WC_API_XML_Handler = new WC_API_XML_Handler();
$WC_API_XML_Handler->get_content_type();

Changelog

Since 2.1 Introduced.

Code of WC_API_XML_Handler::get_content_type() WC 5.7.1

public function get_content_type() {

	return 'application/xml; charset=' . get_option( 'blog_charset' );
}