Skip to content

Commit

Permalink
Displays the new licence->name instead of license_account matching li…
Browse files Browse the repository at this point in the history
…cence (#7097)
  • Loading branch information
nicomollet authored Nov 19, 2024
1 parent 94b081e commit ef59fbd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/functions/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,12 @@ function rocket_get_license_type( $customer_data ) {
return __( 'Unavailable', 'rocket' );
}

// The licence name directly from User endpoint.
if ( ! empty( $customer_data->licence->name ) ) {
return esc_html( $customer_data->licence->name );
}

// Fallback to licence account.
if ( 1 <= $customer_data->licence_account
&&
$customer_data->licence_account < 3
Expand Down

0 comments on commit ef59fbd

Please sign in to comment.