WP Document Revisions
[resolved] Add hook after file upload/update (3 posts)

  1. theonewithout
    Posted 3 years ago #

    I want to trigger a function after a file has been updated or uploaded. What I want to do is send a notification to the people who have access to this file, notifying them of its existence.

    Assuming that documents are just posts, I thought I could do this:
    add_action('wp_transition_document_status', 'send_file_notification');

    But my send_file_notification function is not called. Does anyone have an idea how to fix/create this?


  2. theonewithout
    Posted 3 years ago #

    I am not calling it on the 'save_post' function with a priority set high enough.

  3. theonewithout
    Posted 3 years ago #

    *am now calling

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Document Revisions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic