Softaculous


Topic : Need assistance with WordPress Admin Sets & WHMCS module


Posted By: cikez on October 19, 2021, 9:15 pm
Hello, I was successfully able to follow your instructions on how to configure my WHMCS installation to provision WordPress installations on successful payment. I was also successfully able to get WordPress Admin Sets to automatically install specific plugins during the installation.

My issue is, I need to be able to specify a specific WordPress set for a specific PID.

Here is what I am currently using (works for all):
PHP Code

 $GLOBALS['softaculous_conf']['install']['pid'][1] = 'WordPress'// 1 is the PID and WordPress is the script we want to install
$GLOBALS['softaculous_conf']['install']['pid'][17] = 'WordPress';
$GLOBALS['softaculous_conf']['install']['pid'][18] = 'WordPress';

$GLOBALS['softaculous_conf']['defaults']['sets_name'][] = 'default-set_admin'



I tried this but it does not seem to work:
PHP Code

 $GLOBALS['softaculous_conf']['defaults']['defaults_by_pid'][1]['sets_name'][] = 'default-set_admin'



Any help would be much appreciated! Thanks.

Posted By: Brijesh on October 28, 2021, 1:40 pm | Post: 1
Hi,

Sorry for the delay in response.

It seems the variable was defined incorrectly in sample softaculous_extra.php

The correct syntax would be :
$GLOBALS['softaculous_conf']['defaults_by_pid'][1]['sets_name'][] = 'default-set_admin';

Sorry for the inconvenience caused.

We will update the conf file soon.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: cikez on October 28, 2021, 1:43 pm | Post: 2
Thank you!

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.