Changes between Initial Version and Version 1 of Ticket #42942, comment 5
- Timestamp:
- 04/05/2019 10:49:32 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #42942, comment 5
initial v1 9 9 * it's true that media are stored and managed as `WP_Post` objects, but they're quite different in various regards (they usually have `inherit` status, their `post_date` is usually set at upload and doesn't change...) 10 10 * it could happen that you want to use the hook for posts/pages/custom type items but not for media, and with two distinct hooks you can do it easily without having to resort to `if`/`switch`/whatever: for example when you are dealing with future posts, which makes no sense for media (I think it's one of the most likely use cases); 11 * conversely, if you want to hook the same function to both filters it c nabe done with just one line more.11 * conversely, if you want to hook the same function to both filters it can be done with just one line more. 12 12