wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
wp_enqueue_block_template_skip_link is private and should not be used in themes or plugins directly.
wp_enqueue_block_template_skip_link › WordPress Function
Od6.4.0
Przestarzałyn/a
› wp_enqueue_block_template_skip_link ( Brak parametrów )
| Dostęp: |
|
| Zdefiniowane na: |
|
| Codex: | |
| Dziennik zmian: |
|
Enqueues the skip-link styles.
Źródło
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' );
}