Creating custom metaboxes

You need to add the following in register post of the awesome core.

  1. Where screen is the post type you want to show the meta box on
  2. Title : Which will be shown above the meta box.
  3. Callback_service: the service to call which will show the cusotm metabox fields.
  4. callback_save: the service which will be called when the post is saved.

Sample service to show the meta box

 

  1. The post  object is passed as the template variable.
  2. Both this service were called in the register.custom_metabox shortcode above.

This sample requires Awesome Enterprise plugin version 1.3.4

Updated on Jun 19, 2021