-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add context for Media #9
Comments
WIP 6bd7779 |
@fjarrett There is currently no way of detecting the 'attached' action, see: https://github.com/WordPress/WordPress/blob/0e959f06dce1040c88bf2aa729a947732197ff49/wp-admin/upload.php#L55 Also there is no such action as 'deattached', i'm unable to deattach an attachment from a post, neither from the post gallery dialog nor from the media library, also it doesn't have any trace in the referenced file. |
@shadyvb Sad news! Well we will have to live without these for now. Closing the issue. Are there hook placements that we can suggest for capturing these? If so, we should open a Trac ticket for it. |
@fjarrett As for the 'attach' action, yes i think we can suggest a hook at https://github.com/WordPress/WordPress/blob/master/wp-admin/upload.php?source=c#L76 , something like But for the unattach action, AFAIK it doesn't really exist at all! What i would really want to push for is to add hooks for filesystem operations, like delete and edit. |
Changing strings to be related to Reports Plugin
Media actions should be added as a core context of the Stream plugin.
Possible actions:
The text was updated successfully, but these errors were encountered: