src/PostType.php 1 location
|
@@ 100-105 (lines=6) @@
|
| 97 |
|
protected function normalize() |
| 98 |
|
{ |
| 99 |
|
$this->setColumns(); |
| 100 |
|
foreach( $this->app->config['post_types'] as $type => $args ) { |
| 101 |
|
$this->types[$type] = apply_filters( 'pollux/post_type/args', |
| 102 |
|
$this->normalizeThis( $args, static::POST_TYPE_DEFAULTS, $type ), |
| 103 |
|
$type |
| 104 |
|
); |
| 105 |
|
} |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
/** |
src/Taxonomy.php 1 location
|
@@ 103-107 (lines=5) @@
|
| 100 |
|
*/ |
| 101 |
|
protected function normalize() |
| 102 |
|
{ |
| 103 |
|
foreach( $this->app->config['taxonomies'] as $taxonomy => $args ) { |
| 104 |
|
$this->taxonomies[$taxonomy] = apply_filters( 'pollux/taxonomy/args', |
| 105 |
|
$this->normalizeThis( $args, static::TAXONOMY_DEFAULTS, $taxonomy ) |
| 106 |
|
); |
| 107 |
|
} |
| 108 |
|
$this->taxonomies = array_diff_key( |
| 109 |
|
$this->taxonomies, |
| 110 |
|
get_taxonomies( ['_builtin' => true] ) |