Loading a edit-post page in a plugin
-
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:
https://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
- The topic ‘Loading a edit-post page in a plugin’ is closed to new replies.