For this reason, it is possible to set specific settings directly by editing the plugin files. To do so follow the next steps.
- Open file
/inc/plugins/ougc_withdraw_points.php
- Find the following piece of code:
// You can uncomment the lines below to avoid storing some settings in the DB //define('OUGC_WITHDRAW_POINTS_PUBLICKEY', ''); //define('OUGC_WITHDRAW_POINTS_PRIVATEKEY', ''); //define('OUGC_WITHDRAW_POINTS_IPNSECRET', ''); //define('OUGC_WITHDRAW_POINTS_MERCHANTID', ''); //define('OUGC_WITHDRAW_POINTS_ADDTXFEE', 0); //define('OUGC_WITHDRAW_POINTS_AUTOCONFIRM', 0); //define('OUGC_WITHDRAW_POINTS_PMLOGS', 0);
- Uncomment all or individual lines to hard-code specific settings. An all-uncommented example is below.
// You can uncomment the lines below to avoid storing some settings in the DB define('OUGC_WITHDRAW_POINTS_PUBLICKEY', 'ekDQw2xob5Akaf6PuqxV'); define('OUGC_WITHDRAW_POINTS_PRIVATEKEY', 'UPhMBslDWfP7bl5B8Jae'); define('OUGC_WITHDRAW_POINTS_IPNSECRET', 'cN6smHwggqRnQCAceikh'); define('OUGC_WITHDRAW_POINTS_MERCHANTID', 'ucybkW52FoD1hp6J3j50'); define('OUGC_WITHDRAW_POINTS_ADDTXFEE', 0); define('OUGC_WITHDRAW_POINTS_AUTOCONFIRM', 0); //define('OUGC_WITHDRAW_POINTS_PMLOGS', 0);
- Save the file and close.
- Done.
You can then clean any front-end setting value for all the settings you hard-code or define within the plugin file.