Exchange/it exchange set the product id

From IThemes Codex
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