sfw_get_country_id

Description

Retrieve the country id

If Id is false, the function will try to guess the Id from the current context. In most cases this will be the shop default country id.

Since: 1.0.0

Code

<?php function sfw_get_country_id( $spreadshirt_id = false ){ 
	 … 
 } ?>

Parameter

$spreadshirt_id
(string)

Default: false

Return

(int) Country ID. Default is the shops country id.

File

core/components/functions-country.php