Stream

« see more

New reply 17 Sep, 2025, 2:33 pm

Plugin Releases Plugin Awards

New reply 31 Jul, 2025, 12:23 am

Plugin Releases Plugin Announcement Bars

New thread 31 Jul, 2025, 12:22 am

Plugin Releases Plugin Announcement Bars

New reply 19 Jul, 2025, 2:37 pm

Plugin Releases Plugin Advanced Post Edit

New thread 19 Jul, 2025, 2:29 pm

Plugin Releases Plugin Advanced Post Edit

New reply 15 Jul, 2025, 7:50 am

Plugin Releases Paid Plugin Awards Rules

New reply 15 Jul, 2025, 2:46 am

Plugin Releases Plugin Awards

New thread 13 Jul, 2025, 12:28 am

Plugin Releases Plugin Theme File Templates

New reply 3 Jul, 2025, 3:12 am

Plugin Releases Plugin Feedback

New thread 3 Jul, 2025, 2:55 am

Plugin Releases Plugin Feedback


Files
10 Oct, 2020, 4:09 pm
How can I set my settings directly in the plugin files?
For security reasons, you might decide to keep specific settings outside the front-end to avoid undesired manipulation or simply to keep them outside the DB.

For this reason, it is possible to set specific settings directly by editing the plugin files. To do so follow the next steps.

  1. Open file /inc/plugins/ougc_withdraw_points.php
  2. 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);
    
  3. 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);
    
  4. Save the file and close.
  5. Done.

You can then clean any front-end setting value for all the settings you hard-code or define within the plugin file.
 
 
Need to find something?

Try doing a search of our community forums.