Documentation / Tutorials / Quick Samples
Creating custom metaboxes
/ Quick Samples / Creating custom metaboxes
You need to add the following in register post of the awesome core.
- Where screen is the post type you want to show the meta box on
- Title : Which will be shown above the meta box.
- Callback_service: the service to call which will show the cusotm metabox fields.
- callback_save: the service which will be called when the post is saved.
Sample service to show the meta box
- The post object is passed as the template variable.
- Both this service were called in the register.custom_metabox shortcode above.
This sample requires Awesome Enterprise plugin version 1.3.4