cense key or get a new one here.', 'meta-box' ), // Translators: %1$s - URL to the settings page, %2$s - URL to the pricing page. 'error' => __( 'Your license key is invalid. Please update your license key or get a new one here.', 'meta-box' ), // Translators: %3$s - URL to the My Account page. 'expired' => __( 'Your license key is expired. Please renew your license.', 'meta-box' ), // Translators: %2$s - URL to the pricing page. 'refunded' => __( 'Your license has been refunded. Please purchase a new license to enable premium features.', 'meta-box' ), ]; $status = $this->option->get_license_status(); if ( ! isset( $messages[ $status ] ) ) { return; } echo '
 ' . wp_kses_post( sprintf( $messages[ $status ], $this->settings_page, 'https://elu.to/mnp', 'https://elu.to/mna' ) ); } public function plugin_links( array $links ): array { $status = $this->option->get_license_status(); if ( 'active' === $status ) { return $links; } $text = 'no_key' === $status ? __( 'Activate License', 'meta-box' ) : __( 'Update License', 'meta-box' ); $links[] = '' . esc_html( $text ) . ''; return $links; } }