Skip to content

Commit

Permalink
Merge pull request #1865 from Codeinwp/fix/upsell-notice
Browse files Browse the repository at this point in the history
Add extra condition check for upsell
  • Loading branch information
HardeepAsrani authored Sep 13, 2023
2 parents e1fa507 + 9649026 commit afd2ede
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions inc/class-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ public static function should_show_upsell() {
* @access public
*/
public function should_show_dashboard_upsell() {
if ( defined( 'OTTER_PRO_VERSION' ) ) {
return;
}

$show_upsell = false;

$installed = get_option( 'otter_blocks_install' );
Expand Down Expand Up @@ -398,6 +402,11 @@ public function reset_dashboard_notice() {
* @access public
*/
public function add_pro_link( $links ) {

if ( defined( 'OTTER_PRO_VERSION' ) ) {
return $links;
}

$links[] = sprintf(
'<a href="%s" target="_blank" style="color:#ed6f57;font-weight:bold;">%s</a>',
esc_url_raw( tsdk_utmify( self::get_url(), 'pluginspage', 'action' ) ),
Expand Down

0 comments on commit afd2ede

Please sign in to comment.