Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42563, comment 4


Ignore:
Timestamp:
12/12/2017 01:19:20 AM (7 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42563, comment 4

    initial v1  
    1 Thanks for mentioning that @ptbello - I've fixed that entry to fix that.
     1Thanks for mentioning that @ptbello - I've fixed that entry to reference `unregister_post_type()`.
    22
    33The correct method here is to call `unregister_post_type()` (and/or `unregister_taxonomy()`) in the deactivation handler prior to calling `flush_rewrite_rules()`.