Advertisement
wclovers

Untitled

Jun 9th, 2023
642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. add_filter( 'wcfm_is_allow_view_customer', function( $allow ) {
  2.     global $_POST;
  3.  
  4.     if ( ! check_ajax_referer( 'wcfm_ajax_nonce', 'wcfm_ajax_nonce', false ) ) return $allow;
  5.  
  6.     if (isset($_POST['controller']) && 'wcfm-enquiry' == $_POST['controller']) {
  7.         $allow = false;
  8.     }
  9.  
  10.     return $allow;
  11. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement