first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
/**
* Created by PhpStorm.
* User: bruce
* Date: 30/10/17
* Time: 9:09 PM
*/
class WPML_WP_Taxonomy implements IWPML_WP_Element_Type {
public static function get_linked_post_types( $taxonomy ) {
global $wp_taxonomies;
$post_types = array();
if ( isset( $wp_taxonomies[ $taxonomy ] ) && isset( $wp_taxonomies[ $taxonomy ]->object_type ) ) {
$post_types = $wp_taxonomies[ $taxonomy ]->object_type;
}
return $post_types;
}
/**
* @param string $taxonomy
*
* @return false|WP_Taxonomy
*/
public function get_wp_element_type_object( $taxonomy ) {
return get_taxonomy( $taxonomy );
}
}