Custom Meta Boxes
Fieldify makes it easy to register custom meta boxes in the block editor using only PHP. Custom meta boxes can be registered using the register_custom_meta_box
function. The function takes two arguments: the meta box name and an array of meta box settings.
Meta box registration matches WordPress core meta box registration with the addition of a ‘fields’ argument.
Below is an example of how to register a custom meta box with some custom fields:
Fields
Meta box fields are defined as an associative array with the field name as the key and an array of options as the value.