WordPress at Your Fingertips
function is not described

WC_Data::maybe_read_meta_data() protected WC 3.0.0

Read meta data if null.

{} It's a method of the class: WC_Data{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->maybe_read_meta_data();

Changelog

Since 3.0.0 Introduced.

Code of WC_Data::maybe_read_meta_data() WC 5.8.0

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