This plugin makes use of many action hooks to tailor the delivered processing according to a site’s needs.
Most of them are named with a leading ‘document-‘ but there are a few additional non-standard ones.
Called when the post is saved and Workflow_State taxonomy value is changed. (Only post_ID and new value are available)
In: trait-wp-document-revisions-admin-editor.php
Called when the post is saved and Workflow_State taxonomy value is changed. (post_ID, new and old value are available)
In: trait-wp-document-revisions-admin-editor.php
Called as part of the Workflow_State taxonomy when putting the metabox on the admin page
In: trait-wp-document-revisions-admin-editor.php
Called when putting the lock notice on the admin edit screen.
In: trait-wp-document-revisions-admin-editor.php
Called after trying to over-ride the lock and possibly a notice has been sent.
In: trait-wp-document-revisions-revisions.php
Called when a document has been saved and all plugin processing done.
In: trait-wp-document-revisions-admin-editor.php
Called just after serving the file to the user.
In: trait-wp-document-revisions-file-handler.php
Called just before serving the file to the user.
In: trait-wp-document-revisions-file-handler.php
Fires after extracted text is successfully cached for a revision attachment. Receives the attachment ID. Used internally by the AI summary scheduler to queue a follow-on cron event; third-party consumers (search indexing, embedding generation, etc.) can hook this to react to new extracted content without monkey-patching the cache class.
In: includes/class-wp-document-revisions-text-extractor-cache.php