public function getPrefixGroupedMetaBoxes()
    {
        $fields = $this->getFields();

        // Just group by the field key prefix
        // Ex: home_foo would go in the Home section by default
        $groups = array();
        foreach ($fields as $k => $field) {
            $prefix = current(explode('_', $k));
            if (!array_key_exists($prefix, $groups)) {
                $groups[$prefix] = array();
            }

            $groups[$prefix][] = $k;
        }

        return $groups;
    }
public function getPrefixGroupedMetaBoxes()
    {
        $fields = $this->getFields();

        // Just group by the field key prefix
        // Ex: home_foo would go in the Home section by default
        $groups = array();
        foreach ($fields as $k => $field) {
            $prefix = current(explode('_', $k));
            if (!array_key_exists($prefix, $groups)) {
                $groups[$prefix] = array();
            }

            $groups[$prefix][] = $k;
        }

        return $groups;
    }
public function getPrefixGroupedMetaBoxes ( ) { $ fields = $ this -> getFields ( ) ; // Just group by the field key prefix // Ex: home_foo would go in the Home section by default $ groups = array ( ) ; foreach ( $ fields as $ k => $ field ) { $ prefix = current ( explode ( '_' , $ k ) ) ; if ( ! array_key_exists ( $ prefix , $ groups ) ) { $ groups [ $ prefix ] = array ( ) ; } $ groups [ $ prefix ] [ ] = $ k ; } return $ groups ; }
Get meta boxes grouped by prefix
@return array
Get meta boxes grouped by prefix