0

Can I add a link to "Publish"-button so when it's clicked it publishes new post and direct to another page in same click?

0

1 Answer 1

0

You can using redirect_post_location action in the functions.php in your theme.

For example:

add_action('redirect_post_location', function () {
    global $post;
    return 'http://google.com/search?q=' . $post->ID;
});
1
  • Thanks. I just saw the answer and duplicate so it's fine now. Thanks for helping out :).
    – GRR
    Commented Mar 14, 2017 at 12:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.