WP_HTML_Open_Elements::has_p_in_button_scope()publicWP 6.4.0

Returns whether a P is in BUTTON scope.

Method of the class: WP_HTML_Open_Elements{}

No Hooks.

Return

true|false. Whether a P is in BUTTON scope.

Usage

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->has_p_in_button_scope();

Notes

Changelog

Since 6.4.0 Introduced.

WP_HTML_Open_Elements::has_p_in_button_scope() code WP 6.6.2

public function has_p_in_button_scope() {
	return $this->has_p_in_button_scope;
}