This topic has 3 replies, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #4327
     JohnDoe
    Participant

    Hey,

    i want to add “chat with online users” in one of my pricing tables on my membership section.

    i allready used the code in my header.php so only lvl 3 members can see the chat, but i also want them to see it on the page where they can buy the membership.

    #4381
     SQadmin
    Keymaster

    Hi,
    When v.2.2 wil be out, you will able to do it by adding this to sweetdate-child/functions.php and settings how the restrictions will appear from Sweetdate – Memberships

    COPY CODE
    
    add_filter('kleo_pmpro_level_restrictions', 'kleo_extra_pmpro_restrictions');
    function kleo_extra_pmpro_restrictions($restrictions) {
    	$restrictions[] =     array(
            'title' => __('Title that appears on Sweetdate - Memberships','kleo_framework'),
            'front' => __('Description in the Levels page','kleo_framework'),
            'name' => 'unique_identifier'
        );
    	
    	return $restrictions;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #4383
     JohnDoe
    Participant

    And how exactly will this work?

    #4421
     SQadmin
    Keymaster

    The extra setting will appear just like existing restrictions in back-end Sweetdate -Memberships and front-end Levels page

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?