- Modernized authentication with the introduction of TenantProject

- Created a base mail template
- Adapt and improve document API to usage of catalogs and processors
- Adapt eveai_sync to new authentication mechanism and usage of catalogs and processors
This commit is contained in:
Josako
2024-11-21 17:24:33 +01:00
parent 4c009949b3
commit 7702a6dfcc
72 changed files with 2338 additions and 503 deletions

View File

@@ -29,5 +29,19 @@ class EveAI_Sync {
add_action('add_meta_boxes', array($this->admin, 'add_sync_meta_box'));
add_action('eveai_sync_post', array($this->post_handler, 'sync_post'), 10, 2);
add_action('wp_ajax_eveai_bulk_sync', array($this->admin, 'handle_bulk_sync_ajax'));
// Additional delete hooks
add_action('trashed_post', array($this->post_handler, 'handle_post_delete'));
add_action('wp_trash_post', array($this->post_handler, 'handle_post_delete'));
// Add debug logging for delete actions
add_action('before_delete_post', function($post_id) {
error_log("EveAI Debug: before_delete_post triggered for post {$post_id}");
});
add_action('trashed_post', function($post_id) {
error_log("EveAI Debug: trashed_post triggered for post {$post_id}");
});
add_action('wp_trash_post', function($post_id) {
error_log("EveAI Debug: wp_trash_post triggered for post {$post_id}");
});
}
}