Exchange/it exchange set the product id

From IThemes Codex
Revision as of 08:53, June 13, 2013 by Gaarai (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Sets a global for the current product's id


Looks for paramater. If passed param is a vailid product id, it sets that.

If passed param is false or not a product id, it looks for global $post.

If global $post and passed param are not product ids, it is set to false

History

Since 0.3.8

Parameters

<?php it_exchange_set_the_product_id( $product_id=false ); ?>
  • integer $product_id

Returns

void

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox