WC_ Functions only loaded once
-
Wise-Chat Version: 2.8
i want to implement a Check in the Wise-Chat Plugin for WordPress.
On the first Page load my Code works and everything is fine.
Wise-Chat refreshes the chat every few seconds to include new sended messages.
But on that process the function “wc_memberships” is not existing anymore.
Can i manually load the function?
Is there any workaround?
if (function_exists('wc_memberships')) { if(wc_memberships_is_user_active_member($message->getUser()->getWordPressId(), 'firstMemberShip', false) || wc_memberships_is_user_active_member($message->getUser()->getWordPressId(), 'SecondMembershio', false)) { $hasPremiumMembership = true; }
Suggestions?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WC_ Functions only loaded once’ is closed to new replies.