MetaBox\CustomTable\API::create vs MB_Custom_Table_API::create

Support MB Custom Table MetaBox\CustomTable\API::create vs MB_Custom_Table_API::createResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32371
    badabingbredabadabingbreda
    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?

    #32404
    Long NguyenLong 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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.