| @@ 940-952 (lines=13) @@ | ||
| 937 | if ( empty( $group[ 'label' ] ) ) |
|
| 938 | $group[ 'label' ] = get_post_type_object( $post_type )->labels->label; |
|
| 939 | ||
| 940 | if ( $field_found ) { |
|
| 941 | $pods_field_found = true; |
|
| 942 | add_meta_box( |
|
| 943 | 'pods-meta-' . sanitize_title( $group[ 'label' ] ), |
|
| 944 | $group[ 'label' ], |
|
| 945 | array( $this, 'meta_post' ), |
|
| 946 | $post_type, |
|
| 947 | $group[ 'context' ], |
|
| 948 | $group[ 'priority' ], |
|
| 949 | array( 'group' => $group ) |
|
| 950 | ); |
|
| 951 | ||
| 952 | } |
|
| 953 | } |
|
| 954 | ||
| 955 | if ( $pods_field_found ) { |
|
| @@ 1972-1982 (lines=11) @@ | ||
| 1969 | } |
|
| 1970 | } |
|
| 1971 | ||
| 1972 | if ( $field_found ) { |
|
| 1973 | add_meta_box( |
|
| 1974 | 'pods-meta-' . sanitize_title( $group[ 'label' ] ), |
|
| 1975 | $group[ 'label' ], |
|
| 1976 | array( $this, 'meta_comment' ), |
|
| 1977 | $comment_type, |
|
| 1978 | $group[ 'context' ], |
|
| 1979 | $group[ 'priority' ], |
|
| 1980 | array( 'group' => $group ) |
|
| 1981 | ); |
|
| 1982 | } |
|
| 1983 | } |
|
| 1984 | } |
|
| 1985 | ||