| 1 |
<?php |
| 2 |
|
| 3 |
// no direct access! |
| 4 |
defined('ABSPATH') or die("No direct access"); |
| 5 |
|
| 6 |
/* |
| 7 |
Plugin Name: GSpeech |
| 8 |
Plugin URI: https://gspeech.io |
| 9 |
Description: GSpeech is a universal text to speech audio solution. See <a href="https://gspeech.io/demos">GSpeech Demo</a>. Please <a href="https://gspeech.io/contact-us">Contact Us</a> or to info@gspeech.io if you have any questions. |
| 10 |
Author: Text-To-Speech AI Audio Solutions |
| 11 |
Author URI: https://gspeech.io |
| 12 |
Version: 3.21.5 |
| 13 |
*/ |
| 14 |
|
| 15 |
$gspeech_plugin_version = '3.21.5'; |
| 16 |
$gspeech_new_db_version = 226; |
| 17 |
|
| 18 |
define('GSPEECH_PLG_VERSION', $gspeech_plugin_version); |
| 19 |
define('GSPEECH_NEW_DB_VER', $gspeech_new_db_version); |
| 20 |
if (!defined('MINUTE_IN_SECONDS')) |
| 21 |
define('MINUTE_IN_SECONDS', 60); |
| 22 |
if (!defined('HOUR_IN_SECONDS')) |
| 23 |
define('HOUR_IN_SECONDS', 3600); |
| 24 |
|
| 25 |
include_once __DIR__ . '/includes/gspeech_processor.php'; |
| 26 |
include_once __DIR__ . '/includes/gspeech_main.php'; |
| 27 |
include_once __DIR__ . '/includes/gspeech_widget.php'; |
| 28 |
include_once __DIR__ . '/includes/gspeech_notices.php'; |
| 29 |
include_once __DIR__ . '/includes/gspeech_frontend.php'; |
| 30 |
include_once __DIR__ . '/includes/gspeech_backend.php'; |
| 31 |
|
| 32 |
register_activation_hook(__FILE__, array('GSpeech', 'activate')); |
| 33 |
register_uninstall_hook(__FILE__, array('GSpeech', 'uninstall')); |
| 34 |
|
| 35 |
add_action('init', array('GSpeech', 'init')); |
| 36 |
add_action('widgets_init', array('GSpeech', 'register')); |
| 37 |
add_action('admin_menu', array('GSpeech_Admin', 'admin_menu')); |
| 38 |
add_action('admin_init', array('GSpeech_Admin', 'admin_init')); |
| 39 |
add_action('admin_init', array('GSpeech_Admin', 'admin_settings')); |
| 40 |
add_action('wp_enqueue_scripts', array('GSpeech_Front', 'load_scripts'), 1); |
| 41 |
|
| 42 |
include_once __DIR__ . '/includes/gspeech_frontend_protection.php'; |
| 43 |
|
| 44 |
add_filter('the_content', array('GSpeech_Front', 'process_post_data')); |
| 45 |
add_action('wp_loaded', array('GSpeech_Front', 'load_module')); |
| 46 |
add_action('wp_ajax_wpgsp_apply_feedback', array('GSpeech_Admin', 'wpgsp_apply_feedback')); |
| 47 |
add_action('wp_ajax_nopriv_wpgsp_apply_feedback', array('GSpeech_Admin', 'wpgsp_apply_feedback')); |
| 48 |
add_action('wp_ajax_wpgsp_apply_ajax_save', array('GSpeech_Admin', 'wpgsp_apply_ajax_save')); |
| 49 |
add_action('wp_ajax_nopriv_wpgsp_apply_ajax_save', array('GSpeech_Admin', 'wpgsp_apply_ajax_save')); |
| 50 |
add_action('wp_ajax_wpgsp_validate_enc_data', array('GSpeech_Admin', 'wpgsp_validate_enc_data')); |
| 51 |
add_action('wp_ajax_nopriv_wpgsp_validate_enc_data', array('GSpeech_Admin', 'wpgsp_validate_enc_data')); |
| 52 |
add_filter('plugin_action_links_' . plugin_basename(__FILE__), array('GSpeech_Admin', 'plugin_action_links')); |
| 53 |
|
| 54 |
register_shutdown_function(array('GSpeech_Front', 'make_ob_end_flush')); |