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.
Files

There are currently no posts to display. Be the first one to leave a reply.
Stream

« see more

New thread Omar G. 3 Apr, 2025, 6:26 am

Plugin Releases Plugin Contract Thread

New thread Omar G. 3 Apr, 2025, 6:02 am

Plugin Releases Plugin Extra Forum Permissions

New reply Omar G. 3 Apr, 2025, 4:34 am

Plugin Releases Plugin Forum Cleaner

New reply Omar G. 3 Apr, 2025, 3:59 am

Plugin Releases Plugin Lock Content

New thread Omar G. 3 Apr, 2025, 3:57 am

Plugin Releases Plugin Forum Cleaner

New thread Omar G. 3 Apr, 2025, 3:35 am

Plugin Releases Plugin Lock Content

New thread Omar G. 3 Apr, 2025, 2:16 am

Plugin Releases Paid Plugin Moderator Quick Buttons

New thread Omar G. 29 Mar, 2025, 1:44 am

Plugin Releases Paid Plugin Awards Rules

New thread Omar G. 27 Mar, 2025, 5:53 pm

Plugin Releases Plugin My2FA

New reply Omar G. 23 Mar, 2025, 10:57 am

Plugin Releases Plugin Awards



Current time: 17 Apr, 2025 11:44 am