WC_Data::maybe_read_meta_data()protectedWC 3.0.0

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() code WC 8.7.0

protected function maybe_read_meta_data() {
	if ( is_null( $this->meta_data ) ) {
		$this->read_meta_data();
	}
}