Using my oik-types plugin it’s possible to override a post type definition such that it’s still registered even when the original plugin that created it is not activated.
- Working on my development machine this morning I just realised that my Downloads post type was missing the normal meta boxes associated with Easy Digital Downloads.
- Then I realised it was because I’d deactivated EDD, because it slows me down.
- But, since I’d overridden some behaviour using my oik-types plugin, the post type was still defined.
- That meant I was no longer suffering from the WordPress defect ( TRAC #16598 ) that I detected accidentally during my oik-bwtrace video recording
The reasons I’d overridden the
download post type were:
- To add post_type_supports(‘publicize’) to allow my oik-clone plugin to know which post types are cloneable
- To add post_type supports( ‘home’) to allow
'Display in blog home page'
I find more unplanned use cases for of my
oik-types plugin nearly every day.
Unlike the WordPress core team, I’m unlikely to say that it was never intended to allow this, so I’m going to let it continue to do what it’s doing and let you know about it as well.