woo_directives_is_html_void_element()
See e.g. https://github.com/WordPress/gutenberg/pull/47573.
Хуков нет.
Возвращает
null
. Ничего.
Использование
woo_directives_is_html_void_element( $tag_name );
- $tag_name (обязательный)
- -
Код woo_directives_is_html_void_element() woo directives is html void element WC 7.7.2
function woo_directives_is_html_void_element( $tag_name ) { switch ( $tag_name ) { case 'AREA': case 'BASE': case 'BR': case 'COL': case 'EMBED': case 'HR': case 'IMG': case 'INPUT': case 'LINK': case 'META': case 'SOURCE': case 'TRACK': case 'WBR': return true; default: return false; } }