_block_template_add_skip_link
- %1$s is private and should not be used in themes or plugins directly.
_block_template_add_skip_link ( $template_html )
Access:Parameters:- (string) template_html Block template markup.
Returns:- (string) Modified markup with skip link when applicable.
Defined at: - Introduced in WordPress: 7.0.0
- Deprecated in WordPress: —
Description
Inserts the block template skip-link into the template HTML.When a `MAIN` element exists in the template, this function will ensure
that the element contains an `id` attribute, and it will insert a link to
that `MAIN` element before the first `DIV.wp-site-blocks` element, which
is the wrapper for all blocks in a block template as constructed by
{@see}.
Example:
// Input.