[wp-trac] [WordPress Trac] #39610: Customize: Custom post types cannot be used in starter content

WordPress Trac noreply at wordpress.org
Tue Jan 17 05:09:59 UTC 2017


#39610: Customize: Custom post types cannot be used in starter content
--------------------------+-------------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7.2
Component:  Customize     |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-------------------
 As [https://wordpress.slack.com/archives/core-customize/p1484299578000674
 reported] by @tiagonoronha:

 > hi! I noticed that custom posts types cannot be used in Starter Content.
 CPTs are registered in the `init` hook, way after starter content is
 loaded in `after_theme_setup`. Is this a known issue? thanks!

 [https://wordpress.slack.com/archives/core-customize/p1484554544000689
 and]:

 > Hi! Well, they literally cannot be used in any way. Adding a post of a
 CPT in starter content gives me a warning in the customizer. I’m testing
 this with WooCommerce that registers the CPTs on `init`. This is not a
 problem with the default post types because they get registered two times,
 in `wp-settings.php` and then again on the `init` hook.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39610>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list