WC_Data::maybe_read_meta_data()
Read meta data if null.
Method of the class: WC_Data{}
No Hooks.
Return
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 9.6.1
protected function maybe_read_meta_data() { if ( is_null( $this->meta_data ) ) { $this->read_meta_data(); } }