🏨 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>
42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Multisite Administration hooks
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Administration
|
|
* @since 4.3.0
|
|
*/
|
|
|
|
// Media hooks.
|
|
add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );
|
|
|
|
// User hooks.
|
|
add_action( 'user_admin_notices', 'new_user_email_admin_notice' );
|
|
add_action( 'network_admin_notices', 'new_user_email_admin_notice' );
|
|
|
|
add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );
|
|
|
|
// Site hooks.
|
|
add_action( 'wpmueditblogaction', 'upload_space_setting' );
|
|
|
|
// Network hooks.
|
|
add_action( 'update_site_option_admin_email', 'wp_network_admin_email_change_notification', 10, 4 );
|
|
|
|
// Post hooks.
|
|
add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 );
|
|
|
|
// Tools hooks.
|
|
add_filter( 'import_allow_create_users', 'check_import_new_users' );
|
|
|
|
// Notices hooks.
|
|
add_action( 'admin_notices', 'site_admin_notice' );
|
|
add_action( 'network_admin_notices', 'site_admin_notice' );
|
|
|
|
// Update hooks.
|
|
add_action( 'network_admin_notices', 'update_nag', 3 );
|
|
add_action( 'network_admin_notices', 'maintenance_nag', 10 );
|
|
|
|
// Network Admin hooks.
|
|
add_action( 'add_site_option_new_admin_email', 'update_network_option_new_admin_email', 10, 2 );
|
|
add_action( 'update_site_option_new_admin_email', 'update_network_option_new_admin_email', 10, 2 );
|