Product::get_listing_data()

Summary

Get the channel listing data cached for this product


Return

(object)


Source

File: src/BigCommerce/Post_Types/Product/Product.php

	public function get_listing_data() {
		$data = get_post_meta( $this->post_id, self::LISTING_DATA_META_KEY, true );
		if ( empty( $data ) ) {
			return new \stdClass();
		}

		return json_decode( $data );
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.