Hi, For the plugin credit how to add credit for a user ? require_once 'path/to/amember/bootstrap.php'; // no comment Am_Di::getInstance()->plugins_misc->loadGet('credits')->debit(120); // with comment Am_Di::getInstance()->plugins_misc->loadGet('credits')->debit(120, "Used 120 credits"); // debit 120 credits from user# 1234 Am_Di::getInstance()->plugins_misc->loadGet('credits')->debit(120, "Used 120 credits", 1234); // balance - get current number of credits Am_Di::getInstance()->plugins_misc->loadGet('credits')->balance();
Am_Di::getInstance()->plugins_misc->loadGet('credits')->credit('Number of credits', 'Comment', 'user_id');