Store PHP object can be fetched easily with all the details via providing the correct Store ID in the method below, the method can be called anywhere, below we have provided an example to call it through the functions.php file of the theme.
if(method_exists("\AgileStoreLocator\Helper", 'get_store')) {
$a_store = \AgileStoreLocator\Helper::get_store(5);
}
The results of the above store are as follows.
stdClass Object
(
[id] => 5
[title] => Bid-Bon Development
[description] => bid bid
[street] => 274 Kragga Kamma Road, Lorraine
[city] => Port Elizabeth
[state] => Eastern Cape
[postal_code] => 23452
[lat] => -33.96524
[lng] => 25.50242
[phone] => 041 888 3534
[fax] =>
[email] =>
[website] =>
[logo_id] => 1
[path] => default.png
[marker_id] => 1
[description_2] =>
[open_hours] => {"mon":"0","tue":"0","wed":"0","thu":"0","fri":"0","sat":"0","sun":"0"}
[ordr] => 0
[brand] => 1
[special] =>
[custom] => []
[slug] => bid-bon-development-port-elizabeth
)