WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. theonewithout
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/wp-document-revisions/

  2. theonewithout
    Member
    Posted 1 year ago #

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

  3. theonewithout
    Member
    Posted 1 year ago #

    *am now calling

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic