You've already forked wc-composable-product
Fix WC_Settings_Page class loading issue (v1.1.1)
Critical bug fix for settings page initialization: - Changed hook from woocommerce_loaded to woocommerce_init - woocommerce_loaded fires before WC_Settings_Page is loaded - woocommerce_init ensures all WooCommerce core classes are available This resolves the "Class WC_Settings_Page not found" fatal error that prevented the plugin from activating successfully. Version bumped from 1.1.0 to 1.1.1 (patch release). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Plugin Name: WooCommerce Composable Products
|
||||
* Plugin URI: https://github.com/magdev/wc-composable-product
|
||||
* Description: Create composable products where customers select a limited number of items from a configurable set
|
||||
* Version: 1.1.0
|
||||
* Version: 1.1.1
|
||||
* Author: Marco Graetsch
|
||||
* Author URI: https://example.com
|
||||
* License: GPL v3 or later
|
||||
@@ -19,7 +19,7 @@
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
// Define plugin constants
|
||||
define('WC_COMPOSABLE_PRODUCT_VERSION', '1.1.0');
|
||||
define('WC_COMPOSABLE_PRODUCT_VERSION', '1.1.1');
|
||||
define('WC_COMPOSABLE_PRODUCT_FILE', __FILE__);
|
||||
define('WC_COMPOSABLE_PRODUCT_PATH', plugin_dir_path(__FILE__));
|
||||
define('WC_COMPOSABLE_PRODUCT_URL', plugin_dir_url(__FILE__));
|
||||
@@ -61,8 +61,8 @@ function wc_composable_product_init() {
|
||||
// Initialize main plugin class
|
||||
WC_Composable_Product\Plugin::instance();
|
||||
}
|
||||
// Use woocommerce_loaded to ensure WooCommerce classes are available
|
||||
add_action('woocommerce_loaded', 'wc_composable_product_init');
|
||||
// Use woocommerce_init to ensure all WooCommerce classes including settings are loaded
|
||||
add_action('woocommerce_init', 'wc_composable_product_init');
|
||||
|
||||
/**
|
||||
* Activation hook
|
||||
|
||||
Reference in New Issue
Block a user