Method
Set arbitrary data.
set_data( string|array $name, mixed $value = '' )
public
Parameters
-
$namestring|array - The property name or an array of properties.
-
$valuemixed Default'' - The property value.
Source
public function set_data( $name, $value = '' ) {
if ( is_array( $name ) ) {
foreach ( $name as $k => $v ) {
$this->data[ $k ] = $v;
}
} else {
$this->data[ $name ] = $value;
}
} View src/includes/class-theme-my-login.php, line 323 on GitHub
Uses
Used by
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |