Skip to content

Method

Remove an attribute.

remove_attribute( string $key )

public

Parameters

$key string
The attribute key.

Source

public function remove_attribute( $key ) {
    if ( isset( $this->attributes[ $key ] ) ) {
        unset( $this->attributes[ $key ] );
    }
}

Changelog

VersionDescription
7.0 Introduced.