wp_footer

函式
wp_footer ( No parameters )

wp_footer。這個動作鉤子在WordPress模板的頁尾部分被呼叫,允許開發者在頁面的底部新增指令碼或內容。它通常用於新增跟蹤程式碼、指令碼或其他需要最後載入的內容。

觸發wp_footer動作。參見{@see ‘wp_footer’}。

function wp_footer() {
	/**
	 * Prints scripts or data before the closing body tag on the front end.
	 *
	 * @since 1.5.1
	 */
	do_action( 'wp_footer' );
}

常見問題

FAQs
檢視更多 >