Where is the data saved?

Support General Where is the data saved?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44478
    Jayron CastroJayron Castro
    Participant

    I'm creating custom fields and I have a technical question.

    When I create the fields, I know that the specification is saved in the wp_post and wp_postmeta tables, so far so good, I have already located the configuration specification for the fields, but I cannot find the data that is saved in the field.

    The data appears normally, but I'm curious to know where the data is saved!

    Can you solve my curiosity?

    #44485
    PeterPeter
    Moderator

    Hello Jayron,

    What is the data that you want to know? The field value or field settings?
    The field value (AKA post meta) is saved to the table wp_postmeta. The field settings are registered on page load and they are not saved to the database if you use the code to register the fields.

    #44489
    Jayron CastroJayron Castro
    Participant

    the data I need to know are the field values, received by the frontend.

    After I configure a field it appears in the frontend, but I don't know how WordPress saves the data entered in the field.

    Did you understand?

    #44499
    PeterPeter
    Moderator

    Hello,

    As I mentioned above, the field value is saved to the table wp_postmeta. You can access the database, table wp_postmeta, search for the meta key: field ID and you can see the associated post ID and field value.
    Please read more about custom fields in the documentation https://wordpress.org/documentation/article/assign-custom-fields/

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