Skip to content

Meta Box

Gene Alyson Fortunado Torcende edited this page Apr 11, 2020 · 7 revisions

Addition

accepts 1 parameter - the array of meta box configuration

ThemePlate()->post_meta( $config );
ThemePlate()->term_meta( $config );
ThemePlate()->user_meta( $config );
ThemePlate()->menu_meta( $config );

Config

Each meta box is configured using these following keys:

Required

  • id
  • title
  • fields

Optional - (defaults)

  • description - ''
  • show_on - array()
  • hide_on - array()
  • style - ''
  • priority - 'default'

Specifics

Post
  • screen - array()
  • context - 'advanced'
Term
  • taxonomy - array()