verygoodplugins

Untitled

Jun 17th, 2021
747
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function my_function( $can_access, $user_id, $post_id ) {
  2.  
  3.     if ( isset( $_GET['onething'] ) {
  4.         $can_access = true;
  5.     }
  6.  
  7.     if ( isset( $_GET['something_else'] ) {
  8.         $can_access = true;
  9.     }
  10.  
  11.     if ( isset( $_GET['a_third_thing'] ) {
  12.         $can_access = true;
  13.     }
  14.  
  15.     return $can_access;
  16.  
  17. }
  18.  
  19. add_action( 'wpf_user_can_access', 'my_function', 10, 3 );
RAW Paste Data