I want to add a field to the general settings page, but I can not save the field because I can’t find a hook for the pages save.
Any ideas?
I want to add a field to the general settings page, but I can not save the field because I can’t find a hook for the pages save.
Any ideas?
You must be logged in to post a comment.
You just need to
register_setting()
on your setting and it will be saved automatically. See the Settings API for more info. Here’s a complete example: