Skip to main content
added 664 characters in body
Source Link
Brooke.
  • 3.9k
  • 1
  • 26
  • 34

I'm not sure what the wishlist plugin is but I think the best way to accomplish this may be to use custom user metadata. 

Such as adding "enrolled_in" to the meta_data then having it be an array "mye1,mye2" then on login simple check "if in_array('mye1')" do whatever else block themfor the value.

<?php if is_user_logged_in(){
global $user_ID;
$member_level = get_user_meta($user_ID, "member_level", true);

    //just mye1
    if($member_level == mye1){
       //Show mye1 content
    }
    //just mye2
    else if($member_level == mye2)
     //show mye2 content
    }
    //both mye1 and mye2
    else if ($member_level == mye1 && $member_level == mye2){
    
    //show both content
      }
        //not a member
      else{
        //logged in but not member you fail at life
      }
    }
?>

see: http://wordpress.org/extend/plugins/custom-metadata/ and http://wordpress.org/extend/plugins/add-user-meta/ for a few plugins

I'm not sure what the wishlist plugin is but I think the best way to accomplish this may be to use custom user metadata. Such as adding "enrolled_in" to the meta_data then having it be an array "mye1,mye2" then on login simple check "if in_array('mye1')" do whatever else block them.

I'm not sure what the wishlist plugin is but I think the best way to accomplish this may be to use custom user metadata. 

Such as adding "enrolled_in" to the meta_data then check for the value.

<?php if is_user_logged_in(){
global $user_ID;
$member_level = get_user_meta($user_ID, "member_level", true);

    //just mye1
    if($member_level == mye1){
       //Show mye1 content
    }
    //just mye2
    else if($member_level == mye2)
     //show mye2 content
    }
    //both mye1 and mye2
    else if ($member_level == mye1 && $member_level == mye2){
    
    //show both content
      }
        //not a member
      else{
        //logged in but not member you fail at life
      }
    }
?>

see: http://wordpress.org/extend/plugins/custom-metadata/ and http://wordpress.org/extend/plugins/add-user-meta/ for a few plugins

Source Link
Brooke.
  • 3.9k
  • 1
  • 26
  • 34

I'm not sure what the wishlist plugin is but I think the best way to accomplish this may be to use custom user metadata. Such as adding "enrolled_in" to the meta_data then having it be an array "mye1,mye2" then on login simple check "if in_array('mye1')" do whatever else block them.