29 lines
829 B
PHP
29 lines
829 B
PHP
<?php
|
|
/**
|
|
* Plugin Name: LCP Paywall
|
|
* Plugin URI:
|
|
* Description: A flexible paywall plugin with firewall-like rule management for WordPress content
|
|
* Version: 1.0.0
|
|
* Author:
|
|
* Text Domain: lcp-paywall
|
|
*/
|
|
|
|
if (!defined('ABSPATH')) exit;
|
|
|
|
define('LCP_PAYWALL_PATH', plugin_dir_path(__FILE__));
|
|
define('LCP_PAYWALL_URL', plugin_dir_url(__FILE__));
|
|
define('LCP_PAYWALL_VERSION', '1.0.0');
|
|
|
|
// Include core files
|
|
require_once(LCP_PAYWALL_PATH . 'includes/class-lcp-paywall.php');
|
|
require_once(LCP_PAYWALL_PATH . 'includes/class-lcp-paywall-rules.php');
|
|
require_once(LCP_PAYWALL_PATH . 'includes/class-lcp-paywall-admin.php');
|
|
|
|
// Initialize the plugin
|
|
function lcp_paywall_init() {
|
|
global $lcp_paywall;
|
|
$lcp_paywall = new LCP_Paywall();
|
|
$lcp_paywall->init();
|
|
}
|
|
add_action('plugins_loaded', 'lcp_paywall_init');
|