• H2GD Part 48: Super side effect of oik-types provides workaround for TRAC #16956

    H2GD Part 48: Super side effect of oik-types provides workaround for TRAC #16956

    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.

    See also


    ,

    Published:

    Last updated:

    September 7, 2015

Categories

Tide times from tidetimes.org.uk

Tide Times & Heights for Langstone Harbour on
9th August 2022
02:38 Low Tide ( 1.67m )
09:44 High Tide ( 4.32m )
15:10 Low Tide ( 1.73m )
22:13 High Tide ( 4.53m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
9th August 2022
02:47 Low Tide ( 1.11m )
09:54 High Tide ( 4.08m )
15:15 Low Tide ( 1.16m )
22:14 High Tide ( 4.33m )
WordPress version:6.0.1
Gutenberg version:13.7.3

[clone]

[cloned]