WP_HTML_Open_Elements::has_p_in_button_scope
Returns whether a P is in BUTTON scope.
Method of the class: WP_HTML_Open_Elements{}
No Hooks.
Returns
bool. 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(): bool;
Notes
| See: https://html.spec.whatwg.org/#has-an-element-in-button-scope |
Changelog
| Since 6.4.0 | Introduced. |
WP_HTML_Open_Elements::has_p_in_button_scope() WP HTML Open Elements::has p in button scope code WP 7.1.2
public function has_p_in_button_scope(): bool {
return $this->has_p_in_button_scope;
}