| Server IP : 216.106.184.20 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64 User : sekoaid1 ( 1891) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sekoaid1/public_html/wp-content/plugins/ai-engine/classes/modules/ |
Upload File : |
<?php
class Meow_MWAI_Modules_Utilities {
private $core = null;
private $module_woocommerce = false;
public function __construct() {
global $mwai_core;
$this->core = $mwai_core;
$this->module_woocommerce = $this->core->get_option( 'module_woocommerce' );
// Add Metadata Metabox to Product Post Type Edit Page
if ( $this->module_woocommerce ) {
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
}
}
function add_meta_boxes() {
if ( get_post_type() !== 'product' ) {
return;
}
add_meta_box( 'meow-mwai-metadata',
__( 'AI Engine', 'meow-mwai' ),
array( $this, 'render_metadata_metabox' ),
'product', 'side', 'high'
);
}
function render_metadata_metabox( $post ) {
$this->core->uiNeeded = true;
echo '<div id="mwai-admin-wcAssistant"></div>';
}
}