[wp-trac] [WordPress Trac] #34151: Auto save permalink after register post type / taxonomy

WordPress Trac noreply at wordpress.org
Thu Oct 15 14:41:04 UTC 2015


#34151: Auto save permalink after register post type / taxonomy
------------------------------+------------------------------
 Reporter:  sebastian.pisula  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Rewrite Rules     |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  close             |     Focuses:
------------------------------+------------------------------

Comment (by swissspidy):

 Registering post types is usually done on `init`. Flushing rewrite rules
 at the same time would generate unnecessary load on the server as it only
 needs to be done once.

 That's why
 [https://codex.wordpress.org/Function_Reference/register_post_type#rewrite
 the docs] recommend doing this on plugin activation.

 #18450 and #29118 are probably the best approaches to this, so +1 to
 closing this ticket.

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


More information about the wp-trac mailing list