docs
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
/**
|
||||
* Plugin Name: IGNY8 WordPress Bridge
|
||||
* Plugin URI: https://github.com/your-repo/igny8-ai-os
|
||||
* Description: Lightweight bridge plugin that connects WordPress to IGNY8 API. Syncs posts, taxonomies, and site data bidirectionally.
|
||||
* Version: 1.0.0
|
||||
* Description: Lightweight bridge plugin that connects WordPress to IGNY8 API for one-way content publishing.
|
||||
* Version: 1.1.0
|
||||
* Author: Your Name
|
||||
* Author URI: https://yourwebsite.com
|
||||
* License: GPL v2 or later
|
||||
@@ -22,7 +22,7 @@ if (!defined('ABSPATH')) {
|
||||
}
|
||||
|
||||
// Define plugin constants
|
||||
define('IGNY8_BRIDGE_VERSION', '1.0.0');
|
||||
define('IGNY8_BRIDGE_VERSION', '1.1.0');
|
||||
define('IGNY8_BRIDGE_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
||||
define('IGNY8_BRIDGE_PLUGIN_URL', plugin_dir_url(__FILE__));
|
||||
define('IGNY8_BRIDGE_PLUGIN_FILE', __FILE__);
|
||||
@@ -97,10 +97,7 @@ class Igny8Bridge {
|
||||
require_once IGNY8_BRIDGE_PLUGIN_DIR . 'admin/class-post-meta-boxes.php';
|
||||
}
|
||||
|
||||
// Sync handlers
|
||||
require_once IGNY8_BRIDGE_PLUGIN_DIR . 'sync/hooks.php';
|
||||
require_once IGNY8_BRIDGE_PLUGIN_DIR . 'sync/post-sync.php';
|
||||
require_once IGNY8_BRIDGE_PLUGIN_DIR . 'sync/taxonomy-sync.php';
|
||||
// IGNY8 to WordPress publishing (one-way only)
|
||||
require_once IGNY8_BRIDGE_PLUGIN_DIR . 'sync/igny8-to-wp.php';
|
||||
|
||||
// Data collection
|
||||
@@ -134,11 +131,6 @@ class Igny8Bridge {
|
||||
if (is_admin()) {
|
||||
Igny8Admin::get_instance();
|
||||
}
|
||||
|
||||
// Initialize sync handlers
|
||||
if (class_exists('Igny8WordPressSync')) {
|
||||
new Igny8WordPressSync();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -157,17 +149,16 @@ class Igny8Bridge {
|
||||
add_option('igny8_bridge_version', IGNY8_BRIDGE_VERSION);
|
||||
}
|
||||
|
||||
// Schedule cron jobs
|
||||
igny8_schedule_cron_jobs();
|
||||
// Set default post status option
|
||||
if (!get_option('igny8_default_post_status')) {
|
||||
add_option('igny8_default_post_status', 'draft');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Plugin deactivation
|
||||
*/
|
||||
public function deactivate() {
|
||||
// Unschedule cron jobs
|
||||
igny8_unschedule_cron_jobs();
|
||||
|
||||
// Flush rewrite rules
|
||||
flush_rewrite_rules();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user