true, 'error' => '', ); } /** * The upgrade call-to-action, shared by the upsell bar and every teaser so all * "get Pro" gateways stay consistent. Returns { label, url, external }; the specific * label and target depend on the build (resolved in the body below). * * The 'external' flag (E2) tells call sites whether to open the link in a new tab: an * outbound target opens in a new tab so the admin is not lost; an in-admin target opens * in the SAME tab. * * @return array{label:string,url:string,external:bool} */ public static function upgrade_cta() { // Free build: the CTA is a plain outbound link to the public "how to install" page. // WordPress.org forbids a plugin downloading/installing external premium code, so there // is no in-admin installer — the Pro build is obtained from that page. Opens in a new // tab (external => true). URL is home-of-EquaSuite based + filterable, never hard-coded. return array( 'label' => __( 'Upgrade to Pro', 'equasign' ), 'url' => equasign_pro_page_url(), 'external' => true ); } }