Request_Headers

Summary

No summary available.

Source

File: src/BigCommerce/Api/Request_Headers.php

class Request_Headers {

	/**
	 * @param array $headers
	 *
	 * @return array
	 * @filter bigcommerce/api/default_headers
	 */
	public function add_plugin_info_headers( $headers ) {
		$headers[ 'X-Client-Type' ]    = 'WordPress';
		$headers[ 'X-Client-Version' ] = $GLOBALS[ 'wp_version' ];
		$headers[ 'X-Plugin-Version' ] = Plugin::VERSION;
		$headers[ 'X-Php-Version' ]    = PHP_VERSION;

		return $headers;
	}
}

Methods


User Contributed Notes

You must log in before being able to contribute a note or feedback.