Support » Plugins and Hacks » redirect on save_post action

redirect on save_post action

  • hi,

    i need to check available meta-tags when somebody saves a post and if true redirecting him to another admin_menu page. so i set an action hook on “save_post”, evaluating the metadata through get_post_meta and calling wp_redirect() in the end. but nothing happens, except the update-info on top of the edit-page.

    how to solve this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you ever get an answer to this question?

    no i didnt 🙁

    Hi. wp_redirect uses HTTP headers to perform the redirection. This redirection technique will not work if any output (even whitespace) has already been sent, therefore check this isn’t the case. If it is, you will need to find another redirect method, or call wp_redirect on a hook which actions before content is sent.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘redirect on save_post action’ is closed to new replies.