Forums

Loading a edit-post page in a plugin (1 post)

  1. nutsmuggler
    Member
    Posted 5 years ago #

    Hi folks.
    I am making a bibliography/review plugin, and now I have some trouble.

    I need to load a page after executing some queries.
    Basically, the plugin inserts a new post as a draft, with a custom title. Then I need to open the draft page automatically. The page I must open is like:

    http://localhost:8888/iperstoria/wp-admin/post.php?action=edit&post=$post_ID

    I tried to use the php 'header' function in this way:

    header("Location: url")
    exit;

    It did not work; I also removed the exit command, but I saw no change.
    Can you help me out?
    Thanks in advance,
    Davide

Topic Closed

This topic has been closed to new replies.

About this Topic