-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcommentiq.php
More file actions
27 lines (22 loc) · 860 Bytes
/
commentiq.php
File metadata and controls
27 lines (22 loc) · 860 Bytes
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
<?php
/*
Plugin Name: Elevated Comments
Description: Analyze comments to determine which are most articulate & relevant. Place them near the top of the post.
Author: Postmatic
Version: 1.1.7
Author URI: https://gopostmatic.com
License: GPL2
Text Domain: elevated-comments
Domain Path: /languages
*/
define( 'ELEVATED_COMMENTS_DIR_NAME', plugin_basename(__FILE__) );
function elevated_comments_text_domain() {
load_plugin_textdomain( 'elevated-comments', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
// Setup class autoloader
require_once dirname(__FILE__) . '/src/CommentIQ/Autoloader.php';
CommentIQ_Autoloader::register();
// Load Comment IQ
$commentiq_plugin = new CommentIQ_Plugin(__FILE__);
add_action( 'plugins_loaded', array( $commentiq_plugin, 'load' ) );
add_action( 'plugins_loaded', 'elevated_comments_text_domain' );