Advertisement
fauzanjeg

Fix Conflict with B2BKing plugin

Aug 14th, 2022
1,348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. /** Fix Conflict with B2BKing plugin */
  2. function fix_conlfict_with_b2bking_plugin( $conditions ) {
  3.     if ( isset( $_GET['page'] ) ) {
  4.         $lists = array( 'b2bking' );
  5.  
  6.         foreach ( $lists as $list ) {
  7.             if ( strpos( $_GET['page'], $list ) !== false ) {
  8.                 $conditions = true;
  9.                 break;
  10.             }
  11.         }
  12.     }
  13.  
  14.     return $conditions;
  15. }
  16. add_filter( 'jkit_remove_form_control_conditions', 'fix_conlfict_with_b2bking_plugin' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement