I have a need to direct a user to the media upload page ("wp-admin/upload.php?item=POST_ID") instead of the post edit page for the media item. This is because of a role plugin that (intentionally) blocks access to the posts edit page. I've added a filter right before the redirection call (though it could possibly go above if (FORCE_SSL_ADMIN) {).
I have a need to direct a user to the media upload page ("wp-admin/upload.php?item=POST_ID") instead of the post edit page for the media item. This is because of a role plugin that (intentionally) blocks access to the posts edit page. I've added a filter right before the redirection call (though it could possibly go above
if (FORCE_SSL_ADMIN) {
).To use, in
functions.php
: