Custom Fields
Re-Envisioned
Support MB Settings Page Hook to save values to custom table

  • Creator
    Topic
  • #23717
    Resolved closemarketing
    Participant

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

    Which hook should I use?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #23718
    Long 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
    closemarketing
    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 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 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.