I am looking at the Custom Capability Packages. The video was quite helpful, although when the coding is mentioned, that is a stretch for my brain (not familiar with coding in php at all). In the video, it gave this kind of coding (sorry, i dont know how to put it in a box):
- Code: Select all
if(has_tag("music") && !current_user_can ("access_s2member_ccap_music"))
{
header ("location: ".S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
exit ();
}
From there, i have 2 questions:
1- is the "S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL" a standard variable or something based on the actual site structure?
2- if i have a custom package that requires a free registration, but a different package requiring a different "payment", how can i direct the viewer to a different "membership option" page? Maybe one could say "oops, you need to be a registered member to access this content; registration is free. Please click here to register", but another one could say "To view the tutorials, you can purchase a membership at the price of..." and have a paypal button there, for example. How would i do that? (please, consider me VERY newbie)