-
Notifications
You must be signed in to change notification settings - Fork 2
/
wp-kenzyai.php
17 lines (16 loc) · 966 Bytes
/
wp-kenzyai.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/*
Plugin Name: Kenzy AI™ Comment Sentiment
Description: A free artificial intelligence (A.I.) plugin to analyze and predict the sentiment of comments in either Chinese, English, French, Spanish and Emoji. Negative and neutral comments are placed on hold within your moderation queue, while positive comments are approved and published immediately. Kenzy AI's free API can support upto 1,000 comments per hour, per account.
Version: 1.0.1
Author: Kenzy AI
Author URi: https://kenzyai.com
*/
defined('ABSPATH') or die("This page intentionally left blank.");
$kenzyai = plugin_basename(__FILE__);
require_once(plugin_dir_path(__FILE__)."/functions.php");
require_once(plugin_dir_path(__FILE__)."/adminpage.php");
define("KENZYAI_API_KEY", get_option("api_the_key"));
add_filter("plugin_action_links_{$kenzyai}", 'kenzyai_settings_link' );
add_action('admin_menu', 'api_fp_panel_menu');
add_action( 'wp_insert_comment', 'kenzyai_analyze_comment', 99, 2 );