acf_third_party::tabify_add_meta_boxes
tabify_add_meta_boxes
This function creates dummy metaboxes on the tabify edit screen page
Method of the class: acf_third_party{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_third_party = new acf_third_party(); $acf_third_party->tabify_add_meta_boxes( $post_type );
- $post_type(required)
- .
Changelog
| Since 3.5.1 | Introduced. |
acf_third_party::tabify_add_meta_boxes() acf third party::tabify add meta boxes code ACF 6.0.4
function tabify_add_meta_boxes( $post_type ) {
// get field groups
$field_groups = acf_get_field_groups();
if ( ! empty( $field_groups ) ) {
foreach ( $field_groups as $field_group ) {
// vars
$id = "acf-{$field_group['key']}";
$title = 'ACF: ' . $field_group['title'];
// add meta box
add_meta_box( $id, acf_esc_html( $title ), '__return_true', $post_type );
}
}
}