sfw_get_shop

Description

Retrieve the main Shop Data

Since: 1.0.0

Code

<?php function sfw_get_shop( $spreadshirt_id = false, $flush_cache = false, $transmit_errors = false ){ 
	 … 
 } ?>

Parameter

$spreadshirt_id
(int|string) A Spreadshirt Shop Id

Default: false

$flush_cache
(bool) If set to true, the data will always be requested from the remote host

Default: false

$transmit_errors
(bool) Set to true, to receive WP_Error instead of false in case of errors

Default: false

Return

(object|false|WP_Error) Shopdata on success or false if the data could not be retrieved.

File

core/components/shop/functions-shop.php