Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Advanced Panels: Add support for the 'Custom Fields' meta box #11084
Adds an option which allows the user to enable the existing 'postcustom' meta box included in WordPress.
I've implemented this using the super hacky approach described in #10676 (comment)
The benefits of this approach are that:
The downsides are that:
I had a look at the front-end side of things. The changes seem to be pretty minor there. Looks good to me - seems mergeable if the backend changes also look acceptable.
How does this approach take into account a custom post type where
I would expect the option to not show up in the first place, but from a quick view into the code, I can't see a toggle for that.
In the classic editor, when I go to the screen options, the "Custom Fields"-option disappears when the support has been removed.
Thanks all. I've responded to feedback and fixed the problem where Custom Fields would display in post types that don't support
One issue I've noticed: when the Advanced Custom Fields plugin is enabled, the Custom Fields toggle is displayed even though it doesn't do anything. This is because the ACF plugin removes
Nov 2, 2018
1 check passed
referenced this pull request
Nov 2, 2018
Created a follow-up issue for this here: #11386