|
@@ 96-108 (lines=13) @@
|
| 93 |
|
* |
| 94 |
|
* @param array $post_types |
| 95 |
|
*/ |
| 96 |
|
private static function init_post_types( $post_types ) { |
| 97 |
|
|
| 98 |
|
if (is_array($post_types)) { |
| 99 |
|
|
| 100 |
|
foreach ( $post_types as $type => $options ) { |
| 101 |
|
|
| 102 |
|
self::add_post_type( $type, $options['config'], $options['singular'], $options['multiple'] ); |
| 103 |
|
|
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
|
| 111 |
|
/** |
|
@@ 149-162 (lines=14) @@
|
| 146 |
|
* |
| 147 |
|
* @param array $taxonomies |
| 148 |
|
*/ |
| 149 |
|
private static function init_taxonomies( $taxonomies ) { |
| 150 |
|
|
| 151 |
|
if (is_array($taxonomies)) { |
| 152 |
|
|
| 153 |
|
foreach ( $taxonomies as $type => $options ) { |
| 154 |
|
|
| 155 |
|
self::add_taxonomy( $type, $options['for'], $options['config'], $options['singular'], $options['multiple'] ); |
| 156 |
|
|
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
|
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
/** |
| 165 |
|
* Register taxonomy wrapper |