WordPress at Your Fingertips
function is not described

WC_Data::get_meta_data() public WC 2.6.0

Get All Meta Data.

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

No Hooks.

Return

Array. of objects.

Usage

$WC_Data = new WC_Data();
$WC_Data->get_meta_data();

Changelog

Since 2.6.0 Introduced.

Code of WC_Data::get_meta_data() WC 5.8.0

public function get_meta_data() {
	$this->maybe_read_meta_data();
	return array_values( array_filter( $this->meta_data, array( $this, 'filter_null_meta' ) ) );
}