Automattic\WooCommerce\Admin\Features\Blueprint

RestApi::get_import_allowedpublicWC 1.0

Get whether blueprint imports are allowed.

Method of the class: RestApi{}

No Hooks.

Returns

\WP_REST_Response.

Usage

$RestApi = new RestApi();
$RestApi->get_import_allowed();

RestApi::get_import_allowed() code WC 9.9.5

public function get_import_allowed() {
	$can_import = $this->can_import_blueprint();

	return rest_ensure_response(
		array(
			'import_allowed' => $can_import,
		)
	);
}