Skip to content

Commit

Permalink
display upgrade banner when above 20%
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabrisrp committed Sep 30, 2024
1 parent 378a944 commit 3249296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Admin/AdminBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function get_admin_bar_profile_callback() {
$button_text = esc_html__( 'Upgrade My Plan', 'rocket' );
$upgrade_link = IMAGIFY_APP_DOMAIN . '/subscription/?utm_source=plugin&utm_medium=notification';

if ( $user->get_percent_unconsumed_quota() <= 20 ) {
if ( $user->get_percent_unconsumed_quota() > 20 ) {
$upgrade_button = '<button id="imagify-get-pricing-modal" data-nonce="' . wp_create_nonce( 'imagify_get_pricing_' . get_current_user_id() ) . '" data-target="#imagify-pricing-modal" type="button" class="imagify-modal-trigger imagify-admin-bar-upgrade-plan">' . __( 'Upgrade Plan', 'imagify' ) . '</button>';
}
} elseif ( $user->is_growth() ) {
Expand Down

0 comments on commit 3249296

Please sign in to comment.