Initial
This commit is contained in:
28
lcp-paywall.php
Normal file
28
lcp-paywall.php
Normal 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');
|
||||
Reference in New Issue
Block a user