• 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?

    • This topic was modified 2 years, 7 months ago by tryanixx.
    • This topic was modified 2 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not an Developing with WordPress topic.

    Please ask plugin specific questions in that plugin’s dedicated sub-forum instead.

Viewing 1 replies (of 1 total)
  • The topic ‘WC_ Functions only loaded once’ is closed to new replies.