gdpc_get_linked_products($post_id = 0)

  • $post_id: post to get linked products for. If zero, current post is used.

Get all products linked to this post. You will get array where key is the post type name for product type and it will have array for each one with the value ‘list’ that will have products inside (as objects). This result set will be expanded later.


Leave a Reply