WP_HTML_Processor::remove_attribute()
Remove an attribute from the currently-matched tag.
Метод класса: WP_HTML_Processor{}
Хуков нет.
Возвращает
true|false
. Whether an attribute was removed.
Использование
$WP_HTML_Processor = new WP_HTML_Processor(); $WP_HTML_Processor->remove_attribute( $name ): bool;
- $name(строка) (обязательный)
- The attribute name to remove.
Список изменений
С версии 6.6.0 | Введена. |
С версии 6.6.0 | Subclassed for HTML Processor. |
Код WP_HTML_Processor::remove_attribute() WP HTML Processor::remove attribute WP 6.8.1
public function remove_attribute( $name ): bool { return $this->is_virtual() ? false : parent::remove_attribute( $name ); }