WC_Data::maybe_read_meta_data
Read meta data if null.
Method of the class: WC_Data{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->maybe_read_meta_data();
Changelog
| Since 3.0.0 | Introduced. |
WC_Data::maybe_read_meta_data() WC Data::maybe read meta data code WC 10.4.3
protected function maybe_read_meta_data() {
if ( is_null( $this->meta_data ) ) {
$this->read_meta_data();
}
}