This commit is contained in:
Jeremy Rangel
2025-01-09 23:23:49 -08:00
commit d672947964
6 changed files with 895 additions and 0 deletions

28
lcp-paywall.php Normal file
View File

@ -0,0 +1,28 @@
<?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');