WC_Data::set_object_read()
Set object read property.
Method of the class: WC_Data{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Data = new WC_Data(); $WC_Data->set_object_read( $read );
- $read(true|false)
- Should read?.
Default: true
Changelog
Since 3.0.0 | Introduced. |
WC_Data::set_object_read() WC Data::set object read code WC 9.7.1
public function set_object_read( $read = true ) { $this->object_read = (bool) $read; }