Detect cURL and SimpleXMLElement for FeedBurner Counter

Share

Before you implement FeedBurner counter (text mode) in any of your WordPress theme always remember to check for cURL and SimpleXMLElement.

function stream_capability() {
	return (!!class_exists("SimpleXMLElement") AND !!function_exists("curl_init") ? TRUE : FALSE);
}

Leave your comment