wp_head

函式
wp_head ( No parameters )
定義位置
相關方法
wp_cache_addwp_randwp_metawp_hashwp_remote_head
引入
1.2.0
棄用
-

wp_head: 這個函式用於輸出當前頁面的HTML頭部部分。它通常在header.php模板檔案中呼叫。

觸發wp_head動作。

參見{@see ‘wp_head’}。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_head() {
/**
* Prints scripts or data in the head tag on the front end.
*
* @since 1.5.0
*/
do_action( 'wp_head' );
}
function wp_head() { /** * Prints scripts or data in the head tag on the front end. * * @since 1.5.0 */ do_action( 'wp_head' ); }
function wp_head() {
	/**
	 * Prints scripts or data in the head tag on the front end.
	 *
	 * @since 1.5.0
	 */
	do_action( 'wp_head' );
}

常見問題

FAQs
檢視更多 >