Plugin to show all accounts with WordPress installed


Jul 22, 2019
United States
cPanel Access Level
Root Administrator
I have followed the docs to create a WHM plugin with a UI.

I am attempting to make an AJAX call that will access a PHP script I write to garb all cpanel users, then check their directories for a WordPress installation.

I have spent several hours trying to figure out how to grab a list of accounts in PHP. I believe using the WHM API is incorrect as this is not outside of WHM. CPANEL() does not work because it is for the root user.

Any help pointing me in the right direction would be greatly appreciated.