Automattic\WooCommerce\Internal\CLI\Migrator\Platforms\Webflow
WebflowClient::get_site_id
Return the configured site ID, or a WP_Error if not set.
Method of the class: WebflowClient{}
No Hooks.
Returns
String|\WP_Error.
Usage
$WebflowClient = new WebflowClient(); $WebflowClient->get_site_id();
WebflowClient::get_site_id() WebflowClient::get site id code WC 11.0.0
public function get_site_id() {
if ( empty( $this->credentials['site_id'] ) ) {
return new \WP_Error(
'api_error',
'Webflow site_id is not configured. Please run: wp wc migrate setup --platform=webflow'
);
}
return (string) $this->credentials['site_id'];
}