| 1 | <?php |
||
| 14 | final class Term |
||
| 15 | { |
||
| 16 | use Singleton; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @traitDoc |
||
| 20 | */ |
||
| 21 | public function initializes() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get all terms by given taxonomy |
||
| 28 | * |
||
| 29 | * @param string $taxonomy |
||
| 30 | * @since 1.0.0 |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | public function get($taxonomy) { |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Format a list of WP_Term object to term_id array |
||
| 57 | * |
||
| 58 | * @param array $terms |
||
| 59 | * @since 1.0.0 |
||
| 60 | * @return array |
||
| 61 | */ |
||
| 62 | public function format_to_compare($terms) { |
||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | } |