Support » Plugins » What is the best "action" to redirect in to another page

  • hello,

    i want to redirect from home pagr to another page…
    i tried to redirect using the action get_header…
    it works…
    but it don’t seem to be the beat action to use…

    function redirect_on_index() {
    if (is_home()) {
    wp_redirect(“tag/l1”);
    }
    }
    add_action(“get_header”, “redirect_on_index”);

    what is the best action to use…

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘What is the best "action" to redirect in to another page’ is closed to new replies.