Automattic\WooCommerce\Admin\Features\Blueprint
RestApi::get_import_allowed
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() 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, ) ); }