SHARE
TWEET

Untitled

verygoodplugins May 29th, 2020 762 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function merge_rcp_rules( $can_access, $user_id, $post_id ) {
  2.    
  3.     if ( function_exists( 'rcp_user_can_access' ) && ! ​rcp_user_can_access( $user_id, $post_id ) ) {
  4.         return false;
  5.     }
  6.  
  7.     return $can_access;
  8.  
  9. }
  10.  
  11. add_filter( 'wpf_user_can_access', 'merge_rcp_rules', 10, 3 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top