- 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:
@@ -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}");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user