Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Aljaž Turk
Added: Jun 8, 2018 12:30 PM
Views: 12
Tags: no tags
  1. if( rcp_user_can_access( get_current_user_id(), get_the_ID() ) ) {
  2.         // user can access
  3. } else {
  4.         // user cannot access
  5. }