gdpc_get_query

gdpc_get_query()

Returns the object with GD Products Center specific query variables if the current page is GDPC related and displayed through main query. Object contains following properties

  • is_single: single product page
  • is_archive: products archive
  • is_compare: products comparison
  • is_products: products types page
  • single_page: single page name
  • product_type: products type
  • current_page: current page in archive

If page is not GDPC queried, return null.

Comments

Leave a Reply