Retrieving the post content from a save_post action
-
The data for the post is stored in $_POST, $_GET or the global $post_data, depending on how the post was edited. For example, quick edits use $_GET.
So, how are you meant to handle this in your function? Do they all use the same format for storing the data, i.e. an associative array? Do they all need stripslashes_deep applying?
When I tried doing a quick edit, it used POST, not GET as the codex suggests.
Also, it’s probably covered in the codex somewhere, but I’m not sure to where to find it – what’s the difference between post_content and content?
Thanks
Dave
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Retrieving the post content from a save_post action’ is closed to new replies.