It would be nice to add a property to a box that exists on the page type class that you extended. How this should work isn't thought of yet. Maybe it could use the same box method and add properties last in the box if the box exists.
Example:
class Simple_Content_Page_Type extends Papi_Page_Type {
public function register() {
$this->box( 'Content', [
papi_property()
] );
}
}
class Article_Page_Type extends Simple_Content_Page_Type {
public function register() {
// Add a property last in `Content` box.
$this->box( 'Content', [
papi_property()
] );
}
}
It would be nice to add a property to a box that exists on the page type class that you extended. How this should work isn't thought of yet. Maybe it could use the same
boxmethod and add properties last in the box if the box exists.Example: