PluginProbe
FluentComments – AJAX Comments, Anti-Spam & Comment Email Notifications / 1.0.1
FluentComments – AJAX Comments, Anti-Spam & Comment Email Notifications v1.0.1
2.1.1 trunk 1.0.0 1.0.1 2.0.0 2.1.0
fluent-comments / fluent-comments.php

fluent-comments.php in FluentComments – AJAX Comments, Anti-Spam & Comment Email Notifications 1.0.1, at fluent-comments.php

53 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined('ABSPATH') or die;
3
4 /*
5 Plugin Name: Fluent Comments
6 Plugin URI: https://github.com/WPManageNinja/fluent-comments
7 Description: Simple Comments Plugin for WordPress to fight with spams and trolls
8 Version: 1.0.0
9 Author: WPManageNinja Team
10 Author URI: https://wpmanageninja.com
11 License: GPLv2 or later
12 License URI: https://www.gnu.org/licenses/gpl-2.0.html
13 Text Domain: fluent-comments
14 Domain Path: /languages
15 */
16
17 define('FLUENT_COMMENTS_PLUGIN_PATH', plugin_dir_path(__FILE__));
18 define('FLUENT_COMMENTS_PLUGIN_URL', plugin_dir_url(__FILE__));
19 define('FLUENT_COMMENTS_VERSION', '1.0.0');
20
21 class FluentCommentsPlugin
22 {
23
24 public function boot()
25 {
26 $this->registerAutoLoad();
27 }
28
29 private function registerAutoLoad()
30 {
31 require_once FLUENT_COMMENTS_PLUGIN_PATH . 'app/Helpers/Arr.php';
32 require_once FLUENT_COMMENTS_PLUGIN_PATH . 'app/Hooks/Handlers/ShortcodeHandler.php';
33 require_once FLUENT_COMMENTS_PLUGIN_PATH . 'app/Http/Controllers/CommentsController.php';
34 require_once FLUENT_COMMENTS_PLUGIN_PATH . 'app/Services/Router.php';
35 require_once FLUENT_COMMENTS_PLUGIN_PATH . 'app/Services/FluentWalkerComment.php';
36
37 add_action('rest_api_init', function () {
38 require_once FLUENT_COMMENTS_PLUGIN_PATH . 'app/Http/routes.php';
39 });
40
41 require_once FLUENT_COMMENTS_PLUGIN_PATH . 'app/Hooks/hooks.php';
42
43 add_action('init', function () {
44 load_plugin_textdomain('fluent-comments', false, dirname(plugin_basename(__FILE__)) . '/languages');
45 });
46 }
47 }
48
49
50 add_action('plugins_loaded', function () {
51 (new FluentCommentsPlugin())->boot();
52 });
53