dashed-slug.net › Forums › General discussion › Giving coins to users programmatically › Reply To: Giving coins to users programmatically
March 6, 2022 at 6:42 pm
#11565
Anonymous
Inactive
function mynamespace_getReward( $args ) {
try{
do_action( ‘wallets_api_move’, array(‘symbol’ => (string) $args[1],’amount’ => (float) $args[2],’to_user_id’ => (int) $args[0],’skip_confirm’ => true) );
return “true”;
}catch (Exception $e) {
return $e->getMessage();
}
}