WordPress Forgets $_POST Fields on Page Reload In Admin Panel to Create Post

Thanks for your time.

When I attempt to reference a prior set value within the $_POST variable between page loads (as you would in raw PHP) the data is not set.

Read More

I am within the context of the Create Post section of the admin panel clicking Publish.

My goal is to refill the fields a user has already specified so as to save them the trouble of re-entering all such text/images/etc. data.

Thanks again for any insight into this!

Related posts

Leave a Reply

1 comment

  1. Your $_POST is empty because there is a redirect in between.

    • You are editing at:

    • When you hit publish or save draft the form sends you to:

      As you can see in the HTML source code

      <form name="post" action="post.php" method="post" id="post">

    • After saving the post, WP redirects you to at:


    You best bet would be to use $_SESSION in your plugin;

    $_SESSION[ 'my_plugin_POST' ] = $_POST;