| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Front End PM |
| 4 |
Plugin URI: https://www.shamimsplugins.com/contact-us/ |
| 5 |
Description: Front End PM is a Private Messaging system and a secure contact form to your WordPress site.This is full functioning messaging system fromfront end. The messaging is done entirely through the front-end of your site rather than the Dashboard. This is very helpful if you want to keep your users out of the Dashboard area. |
| 6 |
Version: 7.1 |
| 7 |
Author: Shamim |
| 8 |
Author URI: https://www.shamimsplugins.com/contact-us/ |
| 9 |
Text Domain: front-end-pm |
| 10 |
License: GPLv2 or later |
| 11 |
*/ |
| 12 |
|
| 13 |
if ( ! defined( 'ABSPATH' ) ) { |
| 14 |
exit; // Exit if accessed directly. |
| 15 |
} |
| 16 |
|
| 17 |
class Front_End_Pm { |
| 18 |
|
| 19 |
private static $instance; |
| 20 |
|
| 21 |
private function __construct() { |
| 22 |
|
| 23 |
$this->constants(); |
| 24 |
$this->includes(); |
| 25 |
$this->actions(); |
| 26 |
//$this->filters(); |
| 27 |
|
| 28 |
} |
| 29 |
|
| 30 |
public static function init() |
| 31 |
{ |
| 32 |
if(!self::$instance instanceof self) { |
| 33 |
self::$instance = new self; |
| 34 |
} |
| 35 |
return self::$instance; |
| 36 |
} |
| 37 |
|
| 38 |
function constants() |
| 39 |
{ |
| 40 |
global $wpdb; |
| 41 |
|
| 42 |
define('FEP_PLUGIN_VERSION', '7.1' ); |
| 43 |
define('FEP_PLUGIN_FILE', __FILE__ ); |
| 44 |
define('FEP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 45 |
define('FEP_PLUGIN_URL', plugins_url( '/', __FILE__ ) ); |
| 46 |
|
| 47 |
if ( !defined ('FEP_MESSAGES_TABLE' ) ) |
| 48 |
define('FEP_MESSAGES_TABLE',$wpdb->prefix.'fep_messages'); |
| 49 |
|
| 50 |
if ( !defined ('FEP_META_TABLE' ) ) |
| 51 |
define('FEP_META_TABLE',$wpdb->prefix.'fep_meta'); |
| 52 |
} |
| 53 |
|
| 54 |
function includes() |
| 55 |
{ |
| 56 |
require_once( FEP_PLUGIN_DIR. 'functions.php'); |
| 57 |
|
| 58 |
if( file_exists( FEP_PLUGIN_DIR. 'pro/pro-features.php' ) ) { |
| 59 |
require_once( FEP_PLUGIN_DIR. 'pro/pro-features.php'); |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
function actions() |
| 64 |
{ |
| 65 |
register_activation_hook(__FILE__ , array($this, 'fep_plugin_activate' ) ); |
| 66 |
register_deactivation_hook(__FILE__ , array($this, 'fep_plugin_deactivate' ) ); |
| 67 |
} |
| 68 |
|
| 69 |
function fep_plugin_activate(){ |
| 70 |
|
| 71 |
} |
| 72 |
|
| 73 |
function fep_plugin_deactivate(){ |
| 74 |
} |
| 75 |
|
| 76 |
} //END Class |
| 77 |
|
| 78 |
Front_End_Pm::init(); |
| 79 |
|
| 80 |
|