Pink-Crab / Perique-Registerables

The Registerables module for the PinkCrab framework.
MIT License
3 stars 0 forks source link

Create Shared_Meta_Box_Controller #33

Closed gin0115 closed 2 years ago

gin0115 commented 2 years ago

It's easy to register meta boxes and meta data for new custom post types, but adding these in for existing post types, is not as clean.

To achieve this, we should create a shared controller. This should be an abstract class which can be defined in a project and registered as part of the perique registration process.

A working example of this can be found on the Perique Fishing Theme.

This requires a custom see of rules that need registering as part of Di rules. The way BladeOne_Provider is bootstrapped, should be used as a base.