wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_enqueue_block_template_skip_link › WordPress Function

Since6.4.0
已弃用n/a
› wp_enqueue_block_template_skip_link ( 没有参数 )
访问:
  • private
定义在:
文档:
Change Log:
  • 7.0.0

Enqueues the skip-link styles.



源码

function wp_enqueue_block_template_skip_link() {
	global $_wp_current_template_content;

	// Back-compat for plugins that disable functionality by unhooking this action.
	if ( ! has_action( 'wp_footer', 'the_block_template_skip_link' ) ) {
		return;
	}
	remove_action( 'wp_footer', 'the_block_template_skip_link' );

	// Early exit if not a block theme.
	if ( ! current_theme_supports( 'block-templates' ) ) {
		return;
	}

	// Early exit if not a block template.
	if ( ! $_wp_current_template_content ) {
		return;
	}

	wp_enqueue_style( 'wp-block-template-skip-link' );
}