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. 23 Apr, 2025, 4:03 am

Plugin Releases Plugin Online Users List

New reply Omar G. 22 Apr, 2025, 7:35 pm

Plugin Releases Paid Plugin Discord Connect

New thread Omar G. 22 Apr, 2025, 7:35 pm

Plugin Releases Paid Plugin Discord Connect

New reply Omar G. 21 Apr, 2025, 5:36 am

Plugin Releases Plugin Custom Rates

New reply Omar G. 21 Apr, 2025, 5:13 am

Plugin Releases Plugin Pages

New thread Omar G. 21 Apr, 2025, 5:12 am

Plugin Releases Plugin Pages

New reply Omar G. 21 Apr, 2025, 4:31 am

Plugin Releases Plugin Profile Fields Categories

New thread Omar G. 21 Apr, 2025, 4:29 am

Plugin Releases Plugin Profile Fields Categories

New reply Omar G. 21 Apr, 2025, 4:23 am

Plugin Releases Plugin Show In Portal

New thread Omar G. 21 Apr, 2025, 4:20 am

Plugin Releases Plugin Show In Portal



Current time: 9 May, 2025 9:40 am