Add core data structures for Buildings and Rooms (v0.1.0)
All checks were successful
Create Release Package / build-release (push) Successful in 1m6s
All checks were successful
Create Release Package / build-release (push) Successful in 1m6s
Phase 1 implementation includes: - Custom Post Type: Buildings with address, contact, and details meta - Custom Post Type: Rooms with building relationship and gallery - Custom Taxonomy: Room Types (hierarchical) - Custom Taxonomy: Amenities (non-hierarchical with icons) - Admin columns, filters, and status badges - Gallery meta box with media library integration Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
16
wp-bnb.php
16
wp-bnb.php
@@ -3,7 +3,7 @@
|
||||
* Plugin Name: WP BnB Management
|
||||
* Plugin URI: https://src.bundespruefstelle.ch/magdev/wp-bnb
|
||||
* Description: A comprehensive Bed & Breakfast management system for WordPress. Manage buildings, rooms, bookings, and guests.
|
||||
* Version: 0.0.1
|
||||
* Version: 0.1.0
|
||||
* Requires at least: 6.0
|
||||
* Requires PHP: 8.3
|
||||
* Author: Marco Graetsch
|
||||
@@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
}
|
||||
|
||||
// Plugin version constant - MUST match Version in header above.
|
||||
define( 'WP_BNB_VERSION', '0.0.1' );
|
||||
define( 'WP_BNB_VERSION', '0.1.0' );
|
||||
|
||||
// Plugin path constants.
|
||||
define( 'WP_BNB_PATH', plugin_dir_path( __FILE__ ) );
|
||||
@@ -155,6 +155,18 @@ function wp_bnb_activate(): void {
|
||||
);
|
||||
}
|
||||
|
||||
// Load Composer autoloader for activation.
|
||||
$autoloader = WP_BNB_PATH . 'vendor/autoload.php';
|
||||
if ( file_exists( $autoloader ) ) {
|
||||
require_once $autoloader;
|
||||
|
||||
// Register post types and taxonomies before flushing rewrite rules.
|
||||
\Magdev\WpBnb\Taxonomies\Amenity::register();
|
||||
\Magdev\WpBnb\Taxonomies\RoomType::register();
|
||||
\Magdev\WpBnb\PostTypes\Building::register();
|
||||
\Magdev\WpBnb\PostTypes\Room::register();
|
||||
}
|
||||
|
||||
// Set default options.
|
||||
add_option( 'wp_bnb_version', WP_BNB_VERSION );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user