05wp_head 添加javasscrupt 連結


define ('DIGGTHIS_JS', 
	"<script type='text/javascript'>
		(function() {
		var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
		s.type = 'text/javascript';
		s.async = true;
		s.src = 'http://widgets.digg.com/buttons.js';
		s1.parentNode.insertBefore(s, s1);
		})();
	</script>");

function diggthis_add_js_to_doc_head() {
	print DIGGTHIS_JS;
}

add_action('wp_head','diggthis_add_js_to_doc_head');

Screen Shot 2016-01-13 at 1.12.55 PM

wordpress
CH02用戶資料CH03基本APICH05 分類頁面Category.phpCH09Screen Options(顯示選項)CH10外掛pluginsCH11 add_actionCH12 add_filterCH13Meta Box(自訂區塊)CH14widget(自訂模組)CH15 DBCH16AJAXCH17ShortcodeCH20 wordpress muCH30WooCommerce