false, * has_paid_plans => true), so it needs the SDK live to offer the upgrade, * activate licences and deliver premium updates. Only the public key ships; * the secret key never leaves the developer machine. Overridable in * wp-config.php during development: * * define( 'STARQUILL_FREEMIUS_ID', 12345 ); * define( 'STARQUILL_FREEMIUS_PUBLIC_KEY', 'pk_...' ); */ if ( ! defined( 'STARQUILL_FREEMIUS_ID' ) ) { define( 'STARQUILL_FREEMIUS_ID', 37055 ); } if ( ! defined( 'STARQUILL_FREEMIUS_PUBLIC_KEY' ) ) { define( 'STARQUILL_FREEMIUS_PUBLIC_KEY', 'pk_9d4c74a33a049686b0dcc4aabda4f' ); } require_once STARQUILL_PLUGIN_DIR . 'includes/class-starquill-freemius.php'; require_once STARQUILL_PLUGIN_DIR . 'includes/class-starquill-data.php'; require_once STARQUILL_PLUGIN_DIR . 'includes/class-starquill-render.php'; require_once STARQUILL_PLUGIN_DIR . 'includes/class-starquill-admin.php'; require_once STARQUILL_PLUGIN_DIR . 'includes/class-starquill-moderation.php'; require_once STARQUILL_PLUGIN_DIR . 'includes/class-starquill-shortcode.php'; /** * Is WooCommerce active? * * @return bool */ function starquill_woocommerce_active() { return class_exists( 'WooCommerce' ); } /** * Deactivate gracefully if WooCommerce is missing. * * @return void */ function starquill_maybe_disable() { if ( ! starquill_woocommerce_active() && current_user_can( 'activate_plugins' ) ) { add_action( 'admin_notices', function () { echo '
' . esc_html__( 'Starquill requires WooCommerce to be installed and active.', 'starquill' ) . '