Reply To: Redirect if user does not have the correct ccap

Forums General Redirect if user does not have the correct ccap Reply To: Redirect if user does not have the correct ccap

#381
Carole Asselin
Participant

Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

Here is the code i am using

<?php
if (!empty($_REQUEST['_s2member_vars']))
   @list($restriction_type, $requirement_type, $requirement_type_value, $seeking_type, $seeking_type_value, $seeking_uri)
        = explode("..", stripslashes((string)$_REQUEST["_s2member_vars"]));

if (!empty($seeking_value) && $seeking_value == 'element' ) {
   header('Location: http://scrapbookcampus.com/creative-scrap/creative-scrap-register/');
   exit;
}

Here is one page that you need the ‘element’ ccap to access:
http://scrapbookcampus.com/element-creation-index/folded-edge/

and the sale page is obviously this one:
http://scrapbookcampus.com/creative-scrap/creative-scrap-register/