@@ 178-186 (lines=9) @@ | ||
175 | $metaboxes = array(); |
|
176 | $default_metaboxes = $this->get_default_items( $post_type ); |
|
177 | ||
178 | foreach ( $wp_meta_boxes[ $post_type ] as $priorities ) { |
|
179 | foreach ( $priorities as $priority => $_metaboxes ) { |
|
180 | foreach ( $_metaboxes as $metabox ) { |
|
181 | if ( ! in_array( $metabox['id'], $default_metaboxes ) ) { |
|
182 | $metaboxes[ $metabox['id'] ] = $metabox['id']; |
|
183 | } |
|
184 | } |
|
185 | } |
|
186 | } |
|
187 | ||
188 | return $metaboxes; |
|
189 | } |
@@ 77-90 (lines=14) @@ | ||
74 | do_action( 'tabify_add_meta_boxes', $posttype ); |
|
75 | } |
|
76 | ||
77 | foreach ( $wp_meta_boxes as $posttype => $context ) { |
|
78 | foreach ( $context as $priorities ) { |
|
79 | foreach ( $priorities as $priority => $_metaboxes ) { |
|
80 | foreach ( $_metaboxes as $metabox ) { |
|
81 | // Metabox has been removed |
|
82 | if ( ! isset( $metabox['id'] ) ) { |
|
83 | continue; |
|
84 | } |
|
85 | ||
86 | $metaboxes[ $posttype ][ $metabox['id'] ] = $metabox['title']; |
|
87 | } |
|
88 | } |
|
89 | } |
|
90 | } |
|
91 | ||
92 | ||
93 | return $metaboxes; |