WP_HTML_Processor::remove_attribute( string $name ): bool

In this article

Remove an attribute from the currently-matched tag.

Parameters

$namestringrequired
The attribute name to remove.

Return

bool Whether an attribute was removed.

Source

public function remove_attribute( $name ): bool {
	return $this->is_virtual() ? false : parent::remove_attribute( $name );
}

Changelog

VersionDescription
6.6.0Introduced.

User Contributed Notes

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