Redirect to media page after edit

Hi,

Let me know, how to redirect to buddypress media page from a single media edit page, after submitting the save button.

If there isn’t any action hook or a method to call without touching core files, please tell me where is the code that I should change in the core file. Bcz even it is not the best practice, I should do this.

Thanks.

Hi @dehigaspitiya,

Sorry to say but there isn’t any hook available for that.

You can check for $_POST variable data on single media edit page and depending on them you can redirect to BuddyPress media page.