PluginProbe
Front End PM / 8.4
Front End PM v8.4
trunk 1.1 1.2 1.3 10.1.1 10.1.2 10.1.3 10.1.4 10.1.5 10.1.6 10.1.7 10.2.1 11.1.1 11.2.1 11.2.2 11.2.3 11.3.1 11.3.3 11.3.4 11.3.5 11.3.6 11.3.7 11.3.8 11.3.9 11.4.1 All 58 releases
front-end-pm / front-end-pm.php

front-end-pm.php in Front End PM 8.4, at front-end-pm.php

69 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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: 8.4
7 Author: Shamim Hasan
8 Author URI: https://www.shamimsplugins.com/contact-us/
9 License: GPLv2 or later
10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
11 Text Domain: front-end-pm
12 Domain Path: /languages
13 */
14
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit; // Exit if accessed directly.
17 }
18
19 class Front_End_Pm {
20 private static $instance;
21
22 private function __construct() {
23 $this->constants();
24 $this->includes();
25 $this->actions();
26 //$this->filters();
27 }
28
29 public static function init() {
30 if ( ! self::$instance instanceof self ) {
31 self::$instance = new self;
32 }
33 return self::$instance;
34 }
35
36 function constants() {
37 global $wpdb;
38 define( 'FEP_PLUGIN_VERSION', '8.4' );
39 define( 'FEP_PLUGIN_FILE', __FILE__ );
40 define( 'FEP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
41 define( 'FEP_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
42 if ( ! defined ('FEP_MESSAGES_TABLE' ) ) {
43 define( 'FEP_MESSAGES_TABLE', $wpdb->prefix . 'fep_messages' );
44 }
45 if ( ! defined ('FEP_META_TABLE' ) ) {
46 define( 'FEP_META_TABLE', $wpdb->prefix . 'fep_meta' );
47 }
48 }
49
50 function includes() {
51 require_once( FEP_PLUGIN_DIR . 'functions.php' );
52 if ( file_exists( FEP_PLUGIN_DIR . 'pro/pro-features.php' ) ) {
53 require_once( FEP_PLUGIN_DIR . 'pro/pro-features.php' );
54 }
55 }
56
57 function actions() {
58 register_activation_hook( __FILE__ , array( $this, 'fep_plugin_activate' ) );
59 register_deactivation_hook( __FILE__ , array( $this, 'fep_plugin_deactivate' ) );
60 }
61
62 function fep_plugin_activate() {
63 }
64
65 function fep_plugin_deactivate() {
66 }
67 } //END Class
68 Front_End_Pm::init();
69