| 1 |
<?php |
| 2 |
/** |
| 3 |
* @wordpress-plugin |
| 4 |
* Plugin Name: Schema Engine AI – AI Schema Markup, Reviews & Rich Snippets for SEO |
| 5 |
* Plugin URI: https://wordpress.org/plugins/review-schema/ |
| 6 |
* Description: AI-Powered schema markup plugin for WordPress. Generate JSON-LD schema and FAQs, validate Rich Results, and audit your structured data. |
| 7 |
* Version: 3.0.4 |
| 8 |
* Author: RadiusTheme |
| 9 |
* Author URI: https://radiustheme.com |
| 10 |
* Text Domain: review-schema |
| 11 |
* Domain Path: /languages |
| 12 |
* License: GPLv3 |
| 13 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 14 |
*/ |
| 15 |
|
| 16 |
if ( ! defined( 'ABSPATH' ) ) { |
| 17 |
exit; |
| 18 |
} |
| 19 |
|
| 20 |
// Define PLUGIN_FILE. |
| 21 |
if ( ! defined( 'RTRS_PLUGIN_FILE' ) ) { |
| 22 |
define( 'RTRS_PLUGIN_FILE', __FILE__ ); |
| 23 |
} |
| 24 |
|
| 25 |
// Define VERSION. |
| 26 |
if ( ! defined( 'RTRS_VERSION' ) ) { |
| 27 |
define( 'RTRS_VERSION', '3.0.4' ); |
| 28 |
} |
| 29 |
|
| 30 |
if ( ! defined( 'RTRS_PATH' ) ) { |
| 31 |
define( 'RTRS_PATH', plugin_dir_path( __FILE__ ) ); |
| 32 |
} |
| 33 |
|
| 34 |
require_once RTRS_PATH . 'vendor/autoload.php'; |
| 35 |
|
| 36 |
// Clear AI batch cron on deactivation. |
| 37 |
register_deactivation_hook( |
| 38 |
__FILE__, |
| 39 |
function () { |
| 40 |
wp_clear_scheduled_hook( 'rtrs_ai_batch_generate' ); |
| 41 |
delete_option( '_rtrs_ai_batch_progress' ); |
| 42 |
delete_option( '_rtrs_ai_batch_done' ); |
| 43 |
} |
| 44 |
); |
| 45 |
use Rtrs\Rtrs; |
| 46 |
/** |
| 47 |
* Rivew Schema |
| 48 |
* |
| 49 |
* @return bool|SingletonTrait|Rtrs |
| 50 |
*/ |
| 51 |
function rtrs() { |
| 52 |
return Rtrs::getInstance(); |
| 53 |
} |
| 54 |
rtrs(); // Run Rtrs Plugin. |
| 55 |
|