Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Fix Conflict with VIKBOOKING plugin
- */
- function fix_conflict_with_vikbooking( $conditions ) {
- $page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : '';
- if ( $page ) {
- $lists = array( 'vikbooking' );
- foreach ( $lists as $list ) {
- if ( strpos( $page, $list ) !== false ) {
- $conditions = true;
- break;
- }
- }
- }
- return $conditions;
- }
- add_filter('jkit_remove_form_control_conditions', 'fix_conflict_with_vikbooking');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement