clearPrimary( )


Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Pricing Plans
Learn more about app permissions.
Method Declaration
Copy
function clearPrimary(): Promise<void>;
Request
This method does not take any parameters
JavaScript
import { plans } from "@wix/pricing-plans"; async function clearPrimary() { const response = await plans.clearPrimary(); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?