• I have a plugin with several pages. One page is a form. At the bottom of the form are two options;
    Save
    Save and Manage

    Clicking the first saves the form and reloads the page.
    Clicking the second button saves the form by calling the form again but before anything is written out, it uses the wp_redirect to send them to a management page after it’s saved.

    The code is two lines;
    wp_redirect(get_option(‘siteurl’).’/wp-admin/admin.php?page=my-new-plugin/php/manage_stuff.php’);
    exit;

    The problem I have is it’s redirecting to the new page but I see the “You do not have permission” error.

    I thought I was sending it an absolute url. Also, no code in the redirect script is echo’d out before the redirect AND I address the header issue that comes with wp_redirect.

    What am I missing?

  • The topic ‘wp_redirect – absolute url?’ is closed to new replies.