Hook to save values to custom table

Support MB Settings Page Hook to save values to custom tableResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23717
    closemarketingclosemarketing
    Participant

    I'd need after I save the options, to save it in a custom table.

    Which hook should I use?

    #23718
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The custom table has not supported to save the data of the settings page yet. It helps you to save data to a custom table instead of the default post/user/term meta table, maps fields with an entry (post, term, or user) via its ID. In the case of the settings page, there’s no such ID, just the option name.

    #23720
    closemarketingclosemarketing
    Participant

    Ok Long, but if you tell me which hook I could use, then I'd develop the code for saving in custom table.

    #23725
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can try to use the action hook mb_settings_page_load to add a function get data from the option name and update to your custom table.

    The data of the settings page still saved in the table (wp_)options as default.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.