ai-engine
Last commit date
app
3 years ago
classes
3 years ago
common
3 years ago
constants
3 years ago
images
3 years ago
languages
3 years ago
vendor
3 years ago
ai-engine.php
3 years ago
readme.txt
3 years ago
ai-engine.php
39 lines
| 1 | <?php |
| 2 | /* |
| 3 | Plugin Name: AI Engine: ChatGPT Chatbot, GPT Content Generator, Custom Playground & Features |
| 4 | Plugin URI: https://wordpress.org/plugins/ai-engine/ |
| 5 | Description: GPT AI for WordPress. ChatGPT-style chatbot, image/content generator, finetune and train models, etc. Customizable and sleek UI. Extensible features. Your AI Engine for WP! |
| 6 | Version: 1.2.1 |
| 7 | Author: Jordy Meow |
| 8 | Author URI: https://jordymeow.com |
| 9 | Text Domain: ai-engine |
| 10 | |
| 11 | Dual licensed under the MIT and GPL licenses: |
| 12 | http://www.opensource.org/licenses/mit-license.php |
| 13 | http://www.gnu.org/licenses/gpl.html |
| 14 | */ |
| 15 | |
| 16 | define( 'MWAI_VERSION', '1.2.1' ); |
| 17 | define( 'MWAI_PREFIX', 'mwai' ); |
| 18 | define( 'MWAI_DOMAIN', 'ai-engine' ); |
| 19 | define( 'MWAI_ENTRY', __FILE__ ); |
| 20 | define( 'MWAI_PATH', dirname( __FILE__ ) ); |
| 21 | define( 'MWAI_URL', plugin_dir_url( __FILE__ ) ); |
| 22 | |
| 23 | require_once( 'classes/init.php' ); |
| 24 | |
| 25 | // TODO: Avoid AI Engine JS to load on Rank Math. |
| 26 | // https://wordpress.org/support/topic/conflict-with-another-plugin-rank-math-seo-breaks-image-uploads/ |
| 27 | // When used together, it breaks on Rank Math. Not idea where, their JS is compiled and they didn't |
| 28 | // look into the matter more and repeatedly asked to disable AI Engine on their page. |
| 29 | // I don't have the force to push them to look where and why it breaks and no time to debug their plugin. |
| 30 | |
| 31 | add_action( 'admin_enqueue_scripts', function() { |
| 32 | if ( is_admin() && isset( $_GET['page'] ) && strpos( $_GET['page'], 'rank-math' ) !== false ) { |
| 33 | wp_dequeue_script( 'mwai_meow_plugin' ); |
| 34 | wp_dequeue_script( 'mwai_meow_plugin-vendor' ); |
| 35 | } |
| 36 | }, 20 ); |
| 37 | |
| 38 | ?> |
| 39 |