sfw_get_producttype_id
Description
Retrieve the ID of the producttype in the Sfw Loop. This function tries to get the ID from a less lasting source first. e.g. we don't have to load the whole ProductType Data
Since: 1.0.0
Code
<?php function sfw_get_producttype_id( $producttype_selector = false ){
…
} ?>
Parameter
- $producttype_selector
- (mixed) can be an actual ProductType Id, WP_Term ( sfw-producttype ) or empty ( auto guessing )
Default: false