CCCPaste

JKIT || Fix Conflict with VIKBOOKING plugin

/**
 * 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');