🏨 Hotel Booking Enhancements: - Implemented Eagle Booking Advanced Pricing add-on - Added Booking.com-style rate management system - Created professional calendar interface for pricing - Integrated deals and discounts functionality 💰 Advanced Pricing Features: - Dynamic pricing models (per room, per person, per adult) - Base rates, adult rates, and child rates management - Length of stay discounts and early bird deals - Mobile rates and secret deals implementation - Seasonal promotions and flash sales 📅 Availability Management: - Real-time availability tracking - Stop sell and restriction controls - Closed to arrival/departure functionality - Minimum/maximum stay requirements - Automatic sold-out management 💳 Payment Integration: - Maintained Redsys payment gateway integration - Seamless integration with existing Eagle Booking - No modifications to core Eagle Booking plugin 🛠️ Technical Implementation: - Custom database tables for advanced pricing - WordPress hooks and filters integration - AJAX-powered admin interface - Data migration from existing Eagle Booking - Professional calendar view for revenue management 📊 Admin Interface: - Booking.com-style management dashboard - Visual rate and availability calendar - Bulk operations for date ranges - Statistics and analytics dashboard - Modal dialogs for quick editing 🔧 Code Quality: - WordPress coding standards compliance - Secure database operations with prepared statements - Proper input validation and sanitization - Error handling and logging - Responsive admin interface 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
73 lines
1.8 KiB
PHP
73 lines
1.8 KiB
PHP
<?php
|
|
/*
|
|
* Plugin Name: Contact Form 7
|
|
* Plugin URI: https://contactform7.com/
|
|
* Description: Just another contact form plugin. Simple but flexible.
|
|
* Author: Takayuki Miyoshi
|
|
* Author URI: https://ideasilo.wordpress.com/
|
|
* License: GPL v2 or later
|
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
* Version: 6.0
|
|
* Requires at least: 6.6
|
|
* Requires PHP: 7.4
|
|
*/
|
|
|
|
define( 'WPCF7_VERSION', '6.0' );
|
|
|
|
define( 'WPCF7_REQUIRED_WP_VERSION', '6.6' );
|
|
|
|
define( 'WPCF7_TEXT_DOMAIN', 'contact-form-7' );
|
|
|
|
define( 'WPCF7_PLUGIN', __FILE__ );
|
|
|
|
define( 'WPCF7_PLUGIN_BASENAME', plugin_basename( WPCF7_PLUGIN ) );
|
|
|
|
define( 'WPCF7_PLUGIN_NAME', trim( dirname( WPCF7_PLUGIN_BASENAME ), '/' ) );
|
|
|
|
define( 'WPCF7_PLUGIN_DIR', untrailingslashit( dirname( WPCF7_PLUGIN ) ) );
|
|
|
|
define( 'WPCF7_PLUGIN_MODULES_DIR', WPCF7_PLUGIN_DIR . '/modules' );
|
|
|
|
if ( ! defined( 'WPCF7_LOAD_JS' ) ) {
|
|
define( 'WPCF7_LOAD_JS', true );
|
|
}
|
|
|
|
if ( ! defined( 'WPCF7_LOAD_CSS' ) ) {
|
|
define( 'WPCF7_LOAD_CSS', true );
|
|
}
|
|
|
|
if ( ! defined( 'WPCF7_AUTOP' ) ) {
|
|
define( 'WPCF7_AUTOP', true );
|
|
}
|
|
|
|
if ( ! defined( 'WPCF7_USE_PIPE' ) ) {
|
|
define( 'WPCF7_USE_PIPE', true );
|
|
}
|
|
|
|
if ( ! defined( 'WPCF7_ADMIN_READ_CAPABILITY' ) ) {
|
|
define( 'WPCF7_ADMIN_READ_CAPABILITY', 'edit_posts' );
|
|
}
|
|
|
|
if ( ! defined( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY' ) ) {
|
|
define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'publish_pages' );
|
|
}
|
|
|
|
if ( ! defined( 'WPCF7_VERIFY_NONCE' ) ) {
|
|
define( 'WPCF7_VERIFY_NONCE', false );
|
|
}
|
|
|
|
if ( ! defined( 'WPCF7_USE_REALLY_SIMPLE_CAPTCHA' ) ) {
|
|
define( 'WPCF7_USE_REALLY_SIMPLE_CAPTCHA', false );
|
|
}
|
|
|
|
if ( ! defined( 'WPCF7_VALIDATE_CONFIGURATION' ) ) {
|
|
define( 'WPCF7_VALIDATE_CONFIGURATION', true );
|
|
}
|
|
|
|
// Deprecated, not used in the plugin core. Use wpcf7_plugin_url() instead.
|
|
define( 'WPCF7_PLUGIN_URL',
|
|
untrailingslashit( plugins_url( '', WPCF7_PLUGIN ) )
|
|
);
|
|
|
|
require_once WPCF7_PLUGIN_DIR . '/load.php';
|