sfw_get_printtype_id

Description

Retrieve the ID of the current printtype 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 printtype Data

Since: 1.0.0

Code

<?php function sfw_get_printtype_id( $printtype_selector = false ){ 
	 … 
 } ?>

Parameter

$printtype_selector
(WP_Term|WP_Post|int)

Default: false

Return

(false|int)

File

core/components/printtype/functions-printtype.php