_block_template_add_skip_link


_block_template_add_skip_link ( $template_html )

Access:
  • private
Parameters:
  • (string) template_html Block template markup.
Returns:
  • (string) Modified markup with skip link when applicable.
Defined at:

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.

Top Google Results

User discussions

wpseek mobile

  • My Bookmarks
  • - Soon -