<?php
/**
 * Example wp-config.php snippets for maca Restu Pro.
 *
 * Copy the lines you need into wp-config.php (above "That's all, stop editing!").
 *
 * Pro features require a valid license key (ML-PRO-… or ML-COMP-…) activated against maca.se.
 * Complimentary demo keys are issued from maca.se and validated like paid licenses.
 */

// maca.se license API (use /license only — do NOT add /activate):
// define('MACA_MENULIST_LICENSE_API_URL', 'https://maca.se/wp-json/maca-menulist/v1/license');
// Fallback if menulist routes missing (plugin tries this automatically):
// define('MACA_MENULIST_LICENSE_DOWNLIST_API_URL', 'https://maca.se/wp-json/maca-downlist/v1/license');

// Stripe Checkout page on maca.se (annual plan; lifetime disabled).
// define('MACA_MENULIST_STRIPE_CHECKOUT_URL', 'https://maca.se/restu-pro/');

// Support tickets (optional shared secret — must match maca.se license server setting):
// define('MACA_MENULIST_SUPPORT_SECRET', 'your-random-secret');
// define('MACA_MENULIST_SUPPORT_API_URL', 'https://maca.se/wp-json/maca-menulist/v1/support');
// On maca.se only — fallback inbox when Fluent ticket creation fails:
// define('MACA_MENULIST_LS_SUPPORT_EMAIL', 'support@maca.se');

// Override Pro pricing display (defaults: 499 kr/year intro, 799 kr/year from 2026-09-01).
// add_filter('maca_menulist_pro_pricing', function ($config) {
//     $config['annual_intro_sek'] = 499;
//     $config['annual_regular_sek'] = 799;
//     $config['intro_end_date'] = '2026-08-31';
//     $config['regular_start_date'] = '2026-09-01';
//     $config['lifetime_enabled'] = false;
//     return $config;
// });

// Guest payments: force Stripe checkout off while testing manual-only flow.
// add_filter('maca_menulist_payments_checkout_available', '__return_false');
