Advertisement
fauzanjeg

JKIT || Fix Conflict with VIKBOOKING plugin

May 8th, 2023 (edited)
1,163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. /**
  2.  * Fix Conflict with VIKBOOKING plugin
  3.  */
  4. function fix_conflict_with_vikbooking( $conditions ) {
  5.     $page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : '';
  6.  
  7.     if ( $page ) {
  8.         $lists = array( 'vikbooking' );
  9.  
  10.         foreach ( $lists as $list ) {
  11.             if ( strpos( $page, $list ) !== false ) {
  12.                 $conditions = true;
  13.                 break;
  14.             }
  15.         }
  16.     }
  17.  
  18.     return $conditions;
  19. }
  20. add_filter('jkit_remove_form_control_conditions', 'fix_conflict_with_vikbooking');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement