Forum Replies Created
-
AuthorPosts
-
October 23, 2015 at 5:10 pm in reply to: Custom Post Types does not seem to be able to be protected? #3641
stanusj
ParticipantIs there a work around, or can you recommend someone that might be able to fix this for a fee?
October 22, 2015 at 11:30 pm in reply to: Custom Post Types does not seem to be able to be protected? #3620stanusj
ParticipantI am using Ultimatum, which in turn is using ACF | Advanced Custom Fields Plugin for WordPress for the custom post.
October 22, 2015 at 11:07 pm in reply to: Custom Post Types does not seem to be able to be protected? #3617stanusj
ParticipantI placed the code, here is the view of this page – logged in, and not logged in
vmswebsite.wpengine.com/classroom/the-alder-room/Appreciate any feedback or suggestions pls. Thanks!
October 22, 2015 at 3:11 pm in reply to: Custom Post Types does not seem to be able to be protected? #3608stanusj
ParticipantWhere do I place this code?
global $post;
$post_id = $post->ID;
$access_ctrl = SwpmAccessControl::get_instance();
if ($access_ctrl->can_i_read_post($post_id)){
//This user can read the post with ID $post_id
//Add your custom code that does something
}stanusj
ParticipantYes, please. Something users can do for themselves. Is this possible?
stanusj
ParticipantThanks @mbrsolution. that was helpful.
Is there a solution that Simple Membership Plugin developed for a user to perform on their own ?
-
AuthorPosts