How to use Cyberpanel API in Wordpress?

What do you mean?

If you want to place different values in your array you need to capture the following inputs:

  1. custom first name input
  2. custom second name input
  3. email input
  4. password input

e.g.

$firstName = $_POST['billing_first_name'];

then use it like this

...
$data = array(
	"serverUserName"=> "admin",
	"controller"=>"submitUserCreation",
    "firstName"=>$firstName,
    "lastName"=>"Nasir",
    "email"=>[email protected]",
    "userName"=>"usmannasir",
    "password"=> "cyberpanel",
    "websitesLimit"=>5,
    "selectedACL"=> "user"
);
...