-
Author
-
November 6, 2013 at 20:23 #6118JohnDoeParticipant
I allready added a custom one , To chat with users.
like this :
add_filter(‘kleo_pmpro_level_restrictions’, ‘kleo_extra_pmpro_restrictions’);
function kleo_extra_pmpro_restrictions($restrictions) {
$restrictions[] = array(
‘title’ => __(‘Chat with users’,’kleo_framework’),
‘front’ => __(‘Chat with users’,’kleo_framework’),
‘name’ => ‘unique_identifier’
);
return $restrictions;
}
But when i add a new one , it gives a error.
so i think i have to implement it in the same code?
I check this topic: https://archived.seventhqueen.com/forums/topic/extra-membership-restrictions-how-to
But can’t really figure it out , even that it looks easy to do…. :p
November 7, 2013 at 23:06 #6210SQadminKeymasterIf you want to add another one you can do it in the same function above like:
COPY CODEadd_filter('kleo_pmpro_level_restrictions', 'kleo_extra_pmpro_restrictions'); function kleo_extra_pmpro_restrictions($restrictions) { $restrictions[] = array( 'title' => __('Chat with users','kleo_framework'), 'front' => __('Chat with users','kleo_framework'), 'name' => 'unique_identifier' ); $restrictions[] = array( 'title' => __('Another restriction','kleo_framework'), 'front' => __('Another front restriction description','kleo_framework'), 'name' => 'unique_identifier2' ); return $restrictions; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 7, 2013 at 23:24 #6214JohnDoeParticipantWorks 🙂 , how can i edit the order of the entire list in the memberships pricing table? look at my site and ull see why .
http://www.datelite.net/membership-account/membership-levels/
November 8, 2013 at 02:35 #6249SQadminKeymasterSee here the whole array that you can modify and move up/down the array options:
https://archived.seventhqueen.com/forums/topic/extra-membership-restrictions-how-toHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.