gdcpt_metabox_$metabox_field_header_$field

gdcpt_metabox_$metabox_field_header_$field

  • $metabox: code for the meta box from the meta box editor.
  • $field: code for the field from the field editor

Action runs on top of each meta box custom field.

If the meta box has code ‘movie’, and field is ‘awards’, action name would be: gdcpt_metabox_movie_field_header_awards.

Example:

[php]function metabox_movie_field_header_awards() {
// do something
}
add_action(‘gdcpt_metabox_movie_field_header_awards’, ‘metabox_movie_field_header_awards’);[/php]

Comments

Leave a Reply