woocommerce-multilingual
/
addons
/
wpml-dependencies
/
lib
/
classes
/
wpml-wp
/
class-wpml-wp-taxonomy.php
class-wpml-wp-api.php
4 weeks ago
class-wpml-wp-roles.php
4 weeks ago
class-wpml-wp-taxonomy.php
4 weeks ago
iwpml-wp-element-type.php
4 weeks ago
wpml-php-functions.php
4 weeks ago
wpml-wp-post-type.php
4 weeks ago
class-wpml-wp-taxonomy.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | class WPML_WP_Taxonomy implements IWPML_WP_Element_Type { |
| 4 | |
| 5 | public static function get_linked_post_types( $taxonomy ) { |
| 6 | global $wp_taxonomies; |
| 7 | |
| 8 | $post_types = array(); |
| 9 | if ( isset( $wp_taxonomies[ $taxonomy ] ) && isset( $wp_taxonomies[ $taxonomy ]->object_type ) ) { |
| 10 | $post_types = $wp_taxonomies[ $taxonomy ]->object_type; |
| 11 | } |
| 12 | |
| 13 | return $post_types; |
| 14 | } |
| 15 | |
| 16 | public function get_wp_element_type_object( $taxonomy ) { |
| 17 | return get_taxonomy( $taxonomy ); |
| 18 | } |
| 19 | } |
| 20 |