Store_Api::store_resource_exists( $resource,  $property )

Summary

Check whether the provided resource exists


Parameters

$resource

(Required)

$property

(Required)


Return

(bool)


Source

File: src/BigCommerce/Api/Store_Api.php

	public function store_resource_exists( $resource, $property) {
		if ( empty( $resource ) ) {
			return false;
		}

		return $resource->{$property};
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.