Product::get_custom_fields()

Summary

Get custom fields for this Product


Return

(array[]) An array of associative arrays, with the properties: - name: the name to display for the field - value: the value to display for the field


Source

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

	public function get_custom_fields() {
		$data = get_post_meta( $this->post_id, self::CUSTOM_FIELDS_META_KEY, true );

		return is_array( $data ) ? $data : [];
	}

User Contributed Notes

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