Method
Add an attribute.
add_attribute( string $key, string $value = null )
public
Parameters
-
$keystring - The attribute key.
-
$valuestring Defaultnull - The attribute value.
Source
public function add_attribute( $key, $value = null ) {
$this->attributes[ $key ] = $value;
} View src/includes/class-theme-my-login-form-field.php, line 431 on GitHub
Used by
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |