-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparish-portal.php
More file actions
41 lines (33 loc) · 1.34 KB
/
parish-portal.php
File metadata and controls
41 lines (33 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Plugin Name: Parish Portal
* Description: Parish registration and household management system connector
* Version: 2.0.21
* Author: NettSite
* Requires at least: 6.0
* Requires PHP: 8.2
*/
if (!defined('ABSPATH')) {
exit;
}
// Define plugin constants
define('PARISH_PORTAL_VERSION', '2.0.21' . (WP_DEBUG ? time() : ''));
define('PARISH_PORTAL_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('PARISH_PORTAL_PLUGIN_URL', plugin_dir_url(__FILE__));
define('PARISH_PORTAL_DEFAULT_WELCOME_MESSAGE', 'Thank you for registering! Please go ahead and add any other members of your household.');
// Register activation hook
register_activation_hook(__FILE__, function () {
// Create necessary database tables or options
add_option('parish_portal_api_url', '');
add_option('parish_portal_welcome_message', PARISH_PORTAL_DEFAULT_WELCOME_MESSAGE);
});
// Load the plugin
require_once PARISH_PORTAL_PLUGIN_DIR . 'includes/class-parish-portal.php';
// Load component classes
require_once PARISH_PORTAL_PLUGIN_DIR . 'includes/components/class-member-form.php';
require_once PARISH_PORTAL_PLUGIN_DIR . 'includes/components/class-forgot-password-form.php';
require_once PARISH_PORTAL_PLUGIN_DIR . 'includes/components/class-reset-password-form.php';
// Initialize the plugin
add_action('init', function() {
Parish_Portal::get_instance();
});