plugin_path . 'includes/models/methods-api.php'; $method = new Methods(); include $controller->plugin_path . 'includes/translations/translations.php'; $txt = new Translation; $checkin_date = sanitize_text_field($_POST['param1']); $checkout_date = sanitize_text_field($_POST['param2']); $checkin_timestamp = strtotime($checkin_date); $checkout_timestamp = strtotime($checkout_date); //echo $checkin_timestamp.'-'.$checkout_timestamp; ?>