michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
337 stars 71 forks source link

Saving / Loading custom fields #268

Closed Evzin closed 6 years ago

Evzin commented 7 years ago

Im looking through docs and seems cant find it... there is a way to define custom fields, how they will look. But is there a way to use also custom logic for data sotring? What if i want to save certain filed data in post_meta table or somethihg like this? Is it possible?

michaeluno commented 7 years ago

Hi,

You can modify the submitted form data in the validation callback methods. One of them that you can use is validate() method. And you need to return an array of modified data.

michaeluno commented 6 years ago

Closing due to inactivity.