WP_HTML_Processor::bookmark_tag(): string|false

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Creates a new bookmark for the currently-matched tag and returns the generated name.

Return

string|false Name of created bookmark, or false if unable to create.

Source

case '+H3':
case '+H4':
case '+H5':
case '+H6':
	if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) {
		$this->close_a_p_element();
	}

	if (
		in_array(
			$this->state->stack_of_open_elements->current_node()->node_name,
			array( 'H1', 'H2', 'H3', 'H4', 'H5', 'H6' ),

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.