Support » Plugins and Hacks » Saving custom meta data
6 years, 5 months ago
I’ve got a custom meta box on my Edit/Add Post page. When the users click on Save or Publish then the contents of that box are transferred as part of the post data.
However when Autosave fires then the contents aren’t transferred which means that if a user changes the contents in my meta data box and relies on Autosave to save it then his changes are lost.
Is this either :
1) Me doing something wrong
2) A huge bug in WordPress
3) A defect in WordPress
5 years, 12 months ago
You doing something wrong. Meta data is specifically not included in the autosave call.
5 years, 11 months ago
But why isn’t meta data saved during an autosave? its part of the post and it would seem logical to assume that if autosave fires that it saves meta data too.