verygoodplugins

Untitled

Apr 2nd, 2021
459
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         // Check the (not) tags on all visibility_by_role settings.
  2.         if ( ! empty( $tags_not ) ) {
  3.  
  4.             // Required tags (not).
  5.             $result = array_intersect( $tags_not, $user_tags );
  6.  
  7.             if ( empty( $result ) ) {
  8.                 $can_access = true;
  9.             }
  10.         }
  11.     } else {
  12.         // The user is not logged-in.
  13.         $can_access = true;
  14.     }
  15.  
  16.     $can_access = apply_filters(
  17.         'wpf_user_can_access_block',
  18.         $can_access,
  19.         $attributes
  20.     );
  21.  
  22.     $can_access = apply_filters(
  23.         'wpf_user_can_access',
  24.         $can_access,
  25.         wpf_get_current_user_id(),
  26.         false
  27.     );
  28.  
  29.     if ( $can_access ) {
  30.         return true;
  31.     } else {
  32.         return false;
  33.     }
  34. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×