ACF_Data::prop
prop
Sets a property for the given name and returns $this for chaining.
Method of the class: ACF_Data{}
No Hooks.
Returns
ACF_Data.
Usage
$ACF_Data = new ACF_Data(); $ACF_Data->prop( $name, $value );
- $name((string|array))
- The data name or an array of data.
Default:'' - $value(mixed)
- The data value.
Default:null
Changelog
| Since 5.7.10 | Introduced. |
ACF_Data::prop() ACF Data::prop code ACF 6.0.4
function prop( $name = '', $value = null ) {
// Update property.
$this->{$name} = $value;
// Return this for chaining.
return $this;
}