[wp-trac] [WordPress Trac] #14558: Separate Database Table Support for Custom Post Types

WordPress Trac noreply at wordpress.org
Tue Sep 3 16:25:08 UTC 2019


#14558: Separate Database Table Support for Custom Post Types
-------------------------------+----------------------
 Reporter:  rahul286           |       Owner:  (none)
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  wontfix
 Keywords:                     |     Focuses:
-------------------------------+----------------------

Comment (by rahul286):

 @pento I was excited to see this ticket reopened after nine years.

 I opened this ticket when CPT was introduced. I wish we had a custom
 database table abstraction from the beginning. Looking back at how things
 have evolved, it should have been a separate API rather than a flag in
 CPT.

 I do understand that a lot has been changed over time. CPT's are now
 everywhere. So any refactoring will result in migration insanity, and
 WooCommerce case is an unfortunate example of that!

 I see many times developers use CPT when they should be using custom
 tables. I hope that someday the core will have a better solution for
 custom database table management, which will be as easy to use as CPT.
 And once that is achieved, plugin author's who benefit from it will write
 their own migrations.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/14558#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list