WP_HTML_Processor::remove_attribute
Remove an attribute from the currently-matched tag.
Method of the class: WP_HTML_Processor{}
No Hooks.
Returns
true|false. Whether an attribute was removed.
Usage
$WP_HTML_Processor = new WP_HTML_Processor(); $WP_HTML_Processor->remove_attribute( $name ): bool;
- $name(string) (required)
- The attribute name to remove.
Changelog
| Since 6.6.0 | Introduced. |
| Since 6.6.0 | Subclassed for HTML Processor. |
WP_HTML_Processor::remove_attribute() WP HTML Processor::remove attribute code WP 7.0
public function remove_attribute( $name ): bool {
return $this->is_virtual() ? false : parent::remove_attribute( $name );
}