-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhavenlytics.php
More file actions
61 lines (51 loc) · 1.94 KB
/
havenlytics.php
File metadata and controls
61 lines (51 loc) · 1.94 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/*
Plugin Name: Havenlytics – Real Estate & Property Listings
Plugin URI: https://wordpress.org/plugins/havenlytics/
Description: A property listing plugin for WordPress that allows users to easily manage and display property listings.
Version: 1.0.2
Author: Havenlytics
Author URI: https://havenlytics.com
Text Domain: havenlytics
Domain Path: /languages
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.2
Tags: property listing, real estate, property management, WP plugin, real estate plugin
*/
// prevent direct access to the file
defined('ABSPATH') || die('No direct script access allowed!');
/**
* Havenlytics Plugin - Property Listing Management
*
* This plugin enables the management of property listings, with features
* including property addition, listing management, and frontend display.
*
* @package Havenlytics
* @version 1.0
*/
// Define constants
define('HVNLY_PROPERTY_VERSION', '1.0.2');
define('HVNLY_PROPERTY_URL', plugin_dir_url(__FILE__));
define('HVNLY_PROPERTY_PATH', plugin_dir_path(__FILE__));
// Options/Settings
define('HVNLY_PROPERTY_OPTION_PREFIX', 'hvnly_property_');
update_option(HVNLY_PROPERTY_OPTION_PREFIX . 'settings', $data);
// Database Tables (if needed)
define('HVNLY_PROPERTY_DB_TABLE', $wpdb->prefix . 'hvnly_properties');
// Include the plugin files
require_once HVNLY_PROPERTY_PATH . 'includes/class-init.php';
// Plugin activation hook
register_activation_hook(__FILE__, array('Hvnly_Property_Init', 'activate'));
// Plugin deactivation hook
register_deactivation_hook(__FILE__, array('Hvnly_Property_Init', 'deactivate'));
// Initialize the plugin
Hvnly_Property_Init::get_instance();
// Load plugin text domain for translations
function hvnly_property_load_textdomain()
{
load_plugin_textdomain('havenlytics', false, dirname(plugin_basename(__FILE__)) . '/languages');
}
add_action('init', 'hvnly_property_load_textdomain');