W3cubDocs

/WordPress

WP_HTML_Processor::remove_attribute( string $name ): bool

Remove an attribute from the currently-matched tag.

Parameters

$namestringrequired
The attribute name to remove.

Return

bool Whether an attribute was removed.

Source

case '-HTML':
	/*
	 * > Act as described in the "anything else" entry below.

Changelog

Version Description
6.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_html_processor/remove_attribute