免插件使用七牛CDN

if ( !is_admin() ) {

	add_action('wp_loaded','orwei_ob_start');
	
	function orwei_ob_start() {
		ob_start('orwei_qiniu_cdn_replace');
	}
	
	function orwei_qiniu_cdn_replace($html) {
		return str_replace('//源站地址/wp-content/uploads/', '//七牛地址/wp-content/uploads/', $html);
	}
 }
if ( !is_admin() ){
add_action('wp_loaded','orwei_ob_includes_start');
function orwei_ob_includes_start() {
		ob_start('orwei_qiniu_cdn_includes_replace');
	}
function orwei_qiniu_cdn_includes_replace($html) {
		return str_replace('//源站地址/wp-includes/', '//七牛地址/wp-includes/', $html);
	}
 }