Custom Fields
Re-Envisioned
Support MB Custom Table MetaBox\CustomTable\API::create vs MB_Custom_Table_API::create

  • Creator
    Topic
  • #32371
    Resolved badabingbreda
    Participant

    I'm reading through the documentation on Custom Tables, and see these two classes which seem to do the same. The first is used in the section describing how to use the Custom Model API and is namespaced, but the latter isn't.

    Which one am I supposed to use going forward, they both seem to do the same?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #32404
    Long Nguyen
    Moderator

    Hi Didou,

    Welcome to the support forum.

    I think it is used for backward compatibility when creating the old custom table and custom model which also create the custom table and is defined in the file legacy.php

    class MB_Custom_Table_API extends \MetaBox\CustomTable\API {};

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.