Increasing users' woocommerce points automatically when they buy products which are registered in another plugin (Not Woocommerce)
Can I modify users' woocommerce points using PHP code under the specific condition?
Like, when users buy a product registered in another shopping plugin, not woocommerce.
I tried to refer to woocommerce document and found the way to modify users' points when they subscribe mailchimp. And I think the last part of the code can be a hint.
WCPointsRewardsManager::increasepoints( getcurrentuser_id(), $points, 'mailchimp-newsletter-signup', $data );
But it does not work.
Can I get some help here?