Remove obsolete migration and workflow files; delete Site Builder Wizard references and related components. Update documentation to reflect the removal of the WorkflowState model and streamline the site building process.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# WordPress Plugin Integration Guide
|
||||
|
||||
**Version**: 1.0.0
|
||||
**Last Updated**: 2025-11-16
|
||||
**Last Updated**: 2025-01-XX (Added Publisher module endpoints for content publishing)
|
||||
|
||||
Complete guide for integrating WordPress plugins with IGNY8 API v1.0.
|
||||
|
||||
@@ -1092,11 +1092,21 @@ if (!wp_next_scheduled('igny8_sync_post_statuses')) {
|
||||
|
||||
## Complete Integration Flow
|
||||
|
||||
### IGNY8 → WordPress Flow
|
||||
### IGNY8 → WordPress Flow (Using Publisher Module)
|
||||
|
||||
1. Content generated in IGNY8
|
||||
2. Content created/updated in IGNY8
|
||||
3. Call `POST /api/v1/publisher/publish/` with `content_id` and `destinations: ['wordpress']`
|
||||
4. Publisher module creates WordPress post via REST API
|
||||
5. Publishing record created in IGNY8
|
||||
6. WordPress post ID stored in publishing record
|
||||
7. Content updated with WordPress post URL
|
||||
|
||||
### IGNY8 → WordPress Flow (Legacy/Direct)
|
||||
|
||||
1. Content generated in IGNY8
|
||||
2. Task created/updated in IGNY8
|
||||
3. WordPress post created via `wp_insert_post()`
|
||||
3. WordPress post created via `wp_insert_post()` (if using WordPress plugin)
|
||||
4. Post meta saved with `_igny8_task_id`
|
||||
5. IGNY8 task updated with WordPress post ID
|
||||
|
||||
@@ -1572,8 +1582,9 @@ function igny8_send_site_data_to_igny8($site_id) {
|
||||
$site_data = igny8_collect_site_data();
|
||||
|
||||
// Send to IGNY8 API
|
||||
// Note: This endpoint may need to be created in IGNY8 API
|
||||
$response = $api->post("/system/sites/{$site_id}/import/", [
|
||||
// Note: This endpoint is planned/future feature - may not be available yet
|
||||
// Alternative: Use Integration module endpoints for site data sync
|
||||
$response = $api->post("/integration/integrations/{$integration_id}/sync/", [
|
||||
'site_data' => $site_data,
|
||||
'import_type' => 'full_site_scan'
|
||||
]);
|
||||
@@ -1632,7 +1643,8 @@ function igny8_sync_incremental_site_data($site_id) {
|
||||
}
|
||||
|
||||
// Send incremental update to IGNY8
|
||||
$response = $api->post("/system/sites/{$site_id}/sync/", [
|
||||
// Note: Use Integration module for site sync
|
||||
$response = $api->post("/integration/integrations/{$integration_id}/sync/", [
|
||||
'posts' => $formatted_posts,
|
||||
'sync_type' => 'incremental',
|
||||
'last_sync' => $last_sync
|
||||
@@ -1728,6 +1740,8 @@ function igny8_map_site_to_semantic_strategy($site_id, $site_data) {
|
||||
}
|
||||
|
||||
// Send semantic map to IGNY8
|
||||
// Note: This endpoint is planned/future feature - may not be available yet
|
||||
// Alternative: Use Planner module to create sectors/clusters/keywords manually
|
||||
$response = $api->post("/planner/sites/{$site_id}/semantic-map/", [
|
||||
'semantic_map' => $semantic_map,
|
||||
'site_data' => $site_data
|
||||
@@ -1811,6 +1825,7 @@ function igny8_analyze_and_restructure_site($site_id) {
|
||||
$site_data = igny8_collect_site_data();
|
||||
|
||||
// Step 2: Send to IGNY8 for analysis
|
||||
// Note: This endpoint is planned/future feature - may not be available yet
|
||||
$analysis_response = $api->post("/system/sites/{$site_id}/analyze/", [
|
||||
'site_data' => $site_data,
|
||||
'analysis_type' => 'full_site_restructure'
|
||||
@@ -1830,6 +1845,7 @@ function igny8_analyze_and_restructure_site($site_id) {
|
||||
}
|
||||
|
||||
// Step 4: Get restructuring recommendations
|
||||
// Note: This endpoint is planned/future feature - may not be available yet
|
||||
$recommendations_response = $api->get("/system/sites/{$site_id}/recommendations/");
|
||||
|
||||
if (!$recommendations_response['success']) {
|
||||
@@ -1908,7 +1924,8 @@ class Igny8SiteIntegration {
|
||||
$site_data = igny8_collect_site_data();
|
||||
|
||||
// Send to IGNY8
|
||||
$response = $this->api->post("/system/sites/{$this->site_id}/import/", [
|
||||
// Note: Use Integration module for site data import
|
||||
$response = $this->api->post("/integration/integrations/{$integration_id}/sync/", [
|
||||
'site_data' => $site_data,
|
||||
'import_type' => 'full_scan'
|
||||
]);
|
||||
@@ -1937,6 +1954,7 @@ class Igny8SiteIntegration {
|
||||
* Get semantic strategy recommendations
|
||||
*/
|
||||
public function get_recommendations() {
|
||||
// Note: This endpoint is planned/future feature - may not be available yet
|
||||
$response = $this->api->get("/planner/sites/{$this->site_id}/recommendations/");
|
||||
|
||||
if ($response['success']) {
|
||||
@@ -1950,6 +1968,7 @@ class Igny8SiteIntegration {
|
||||
* Apply restructuring recommendations
|
||||
*/
|
||||
public function apply_restructuring($recommendations) {
|
||||
// Note: This endpoint is planned/future feature - may not be available yet
|
||||
$response = $this->api->post("/planner/sites/{$this->site_id}/restructure/", [
|
||||
'recommendations' => $recommendations
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user