| @@ -74,8 +74,17 @@ | ||
| 74 | 74 | WPUPG_POST_TYPE, |
| 75 | 75 | 'normal', |
| 76 | 76 | 'high' |
| 77 | 77 | ); |
| 78 | + | |
| 79 | + add_meta_box( | |
| 80 | + 'wpupg_meta_box_limit_terms', | |
| 81 | + __( 'Limit Terms', 'wp-ultimate-post-grid' ), | |
| 82 | + array( $this, 'meta_box_limit_terms' ), | |
| 83 | + WPUPG_POST_TYPE, | |
| 84 | + 'normal', | |
| 85 | + 'high' | |
| 86 | + ); | |
| 78 | 87 | } |
| 79 | 88 | |
| 80 | 89 | public function add_meta_box_filter() |
| 81 | 90 | { |
| @@ -88,8 +97,17 @@ | ||
| 88 | 97 | 'high' |
| 89 | 98 | ); |
| 90 | 99 | |
| 91 | 100 | add_meta_box( |
| 101 | + 'wpupg_meta_box_text_filter', | |
| 102 | + __( 'Text Search Filter', 'wp-ultimate-post-grid' ), | |
| 103 | + array( $this, 'meta_box_text_filter' ), | |
| 104 | + WPUPG_POST_TYPE, | |
| 105 | + 'normal', | |
| 106 | + 'high' | |
| 107 | + ); | |
| 108 | + | |
| 109 | + add_meta_box( | |
| 92 | 110 | 'wpupg_meta_box_isotope_filter', |
| 93 | 111 | __( 'Isotope Filter', 'wp-ultimate-post-grid' ), |
| 94 | 112 | array( $this, 'meta_box_isotope_filter' ), |
| 95 | 113 | WPUPG_POST_TYPE, |
| @@ -166,12 +184,24 @@ | ||
| 166 | 184 | $grid = new WPUPG_Grid( $post ); |
| 167 | 185 | include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_limit_posts.php' ); |
| 168 | 186 | } |
| 169 | 187 | |
| 188 | + public function meta_box_limit_terms( $post ) | |
| 189 | + { | |
| 190 | + $grid = new WPUPG_Grid( $post ); | |
| 191 | + include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_limit_terms.php' ); | |
| 192 | + } | |
| 193 | + | |
| 170 | 194 | public function meta_box_filter( $post ) |
| 171 | 195 | { |
| 172 | 196 | $grid = new WPUPG_Grid( $post ); |
| 173 | 197 | include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_filter.php' ); |
| 198 | + } | |
| 199 | + | |
| 200 | + public function meta_box_text_filter( $post ) | |
| 201 | + { | |
| 202 | + $grid = new WPUPG_Grid( $post ); | |
| 203 | + include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_text_filter.php' ); | |
| 174 | 204 | } |
| 175 | 205 | |
| 176 | 206 | public function meta_box_isotope_filter( $post ) |
| 177 | 207 | { |