Alternative method to get $isreseller and $isresellerlogin variables

Operating System & Version
CentOS 7
cPanel & WHM Version
97.9999 (build 102)

sangeeths

Member
May 25, 2021
12
2
78
India
cPanel Access Level
Root Administrator
Our cPanel plugin currently has the following two lines in a PHP file:

Code:
$data= array(
  ...
  'is_reseller' => $cpanel->cpanelprint('$isreseller'),
  'is_reseller_login' => $cpanel->cpanelprint('$isresellerlogin')
  ...
);
I noticed today while browsing the docs that cpanelprint() is deprecated. However, I couldn't figure out the appropriate alternative in the Variables module where I can get the same information.

Could someone let me know what'd be the correct replacement for these?
 

sangeeths

Member
May 25, 2021
12
2
78
India
cPanel Access Level
Root Administrator