Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

djeyewater on "Retrieving the post content from a save_post action"

$
0
0

According to the codex

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 all articles
Browse latest Browse all 8245

Trending Articles