Implement site structure synchronization between WordPress and IGNY8 backend

- Added a new API endpoint in the `IntegrationViewSet` to update the WordPress site structure, including post types and taxonomies.
- Implemented a function to retrieve the site structure and sync it to the IGNY8 backend after establishing a connection.
- Scheduled a daily cron job to keep the site structure updated.
- Enhanced the WordPress plugin to trigger synchronization upon successful API connection.
- Updated relevant files to support the new synchronization feature, improving integration capabilities.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-22 03:36:35 +00:00
parent 3580acf61e
commit bcee76fab7
14 changed files with 2617 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ function igny8_register_sync_hooks() {
add_action('igny8_sync_taxonomies', 'igny8_cron_sync_taxonomies');
add_action('igny8_sync_keywords', 'igny8_cron_sync_keywords');
add_action('igny8_full_site_scan', 'igny8_cron_full_site_scan');
add_action('igny8_sync_site_structure', 'igny8_sync_site_structure_to_backend');
}
// Register hooks