wp_footer

函数
wp_footer ( No parameters )

wp_footer。这个动作钩子在WordPress模板的页脚部分被调用,允许开发者在页面的底部添加脚本或内容。它通常用于添加跟踪代码、脚本或其他需要最后加载的内容。

触发wp_footer动作。参见{@see ‘wp_footer’}。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_footer() {
/**
* Prints scripts or data before the closing body tag on the front end.
*
* @since 1.5.1
*/
do_action( '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' ); }
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
查看更多 >