core/Container/Term_Meta_Container.php 1 location
|
@@ 182-196 (lines=15) @@
|
179 |
|
* |
180 |
|
* @return array<string> |
181 |
|
*/ |
182 |
|
public function get_taxonomy_visibility() { |
183 |
|
$all_taxonomies = get_taxonomies(); |
184 |
|
$filtered_collection = $this->condition_collection->filter( array( 'term_taxonomy' ) ); |
185 |
|
|
186 |
|
$shown_on = array(); |
187 |
|
foreach ( $all_taxonomies as $taxonomy ) { |
188 |
|
$environment = array( |
189 |
|
'taxonomy' => $taxonomy, |
190 |
|
); |
191 |
|
if ( $filtered_collection->is_fulfilled( $environment ) ) { |
192 |
|
$shown_on[] = $taxonomy; |
193 |
|
} |
194 |
|
} |
195 |
|
return $shown_on; |
196 |
|
} |
197 |
|
|
198 |
|
/** |
199 |
|
* COMMON USAGE METHODS |
core/Container/Post_Meta_Container.php 1 location
|
@@ 246-260 (lines=15) @@
|
243 |
|
* |
244 |
|
* @return array<string> |
245 |
|
*/ |
246 |
|
public function get_post_type_visibility() { |
247 |
|
$all_post_types = get_post_types(); |
248 |
|
$filtered_collection = $this->condition_collection->filter( array( 'post_type' ) ); |
249 |
|
|
250 |
|
$shown_on = array(); |
251 |
|
foreach ( $all_post_types as $post_type ) { |
252 |
|
$environment = array( |
253 |
|
'post_type' => $post_type, |
254 |
|
); |
255 |
|
if ( $filtered_collection->is_fulfilled( $environment ) ) { |
256 |
|
$shown_on[] = $post_type; |
257 |
|
} |
258 |
|
} |
259 |
|
return $shown_on; |
260 |
|
} |
261 |
|
|
262 |
|
/** |
263 |
|
* COMMON USAGE METHODS |