Advertisement
verygoodplugins

Untitled

Aug 28th, 2020
1,573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. function my_popup_logic( $can_access, $user_id, $popup_id ) {
  2.  
  3.     if ( $popup_id == 1234 && ! wpf_has_tag( 'Tag Name' ) ) {
  4.         $can_access = true;
  5.     }
  6.  
  7.     return $can_access;
  8.  
  9. }
  10.  
  11. add_filter( 'wpf_user_can_access', 'my_popup_logic', 10, 3 );
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement