Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#50265 closed enhancement (duplicate)

Increase varchar 20 limit when registering a post type name

Reported by: ninetyninew's profile ninetyninew Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:


We attempted to add a post type the other day which was more than 20 characters, this resulted in the post type not being registered as per documentation:

Limit is var char 20.

There are scenarios where you want to use a unique prefix and this combined with a descriptive name of the post type exceeds 20 characters.

Change History (1)

#1 @ocean90
4 years ago

  • Component changed from General to Posts, Post Types
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 5.4.1 deleted

Hello @ninetyninew, welcome to WordPress Trac!

Thanks for the ticket. We're already tracking this request in #37104 which is currently closed for maybelater. Please feel free to join discussion there.

Note: See TracTickets for help on using tickets.