public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     remove_all_filters('gettext_with_context', -1000);
     remove_all_filters('gettext', -1000);
     $args = array();
     $taxonomy = false;
     $request_post_page = filter_input(INPUT_POST, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_page) {
         $args['page'] = $request_post_page;
     }
     $request_post_perPage = filter_input(INPUT_POST, 'perPage', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_perPage) {
         $args['per_page'] = $request_post_perPage;
     }
     $request_post_taxonomy = filter_input(INPUT_POST, 'taxonomy', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_taxonomy) {
         $taxonomy = $request_post_taxonomy;
     }
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy, $args);
         if (defined('WPML_ST_FOLDER')) {
             $labels = self::get_label_translations($taxonomy);
         } else {
             $labels = false;
         }
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     $args = array();
     $taxonomy = false;
     $request_post_page = filter_input(INPUT_POST, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_page) {
         $args['page'] = $request_post_page;
     }
     $request_post_perPage = filter_input(INPUT_POST, 'perPage', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_perPage) {
         $args['per_page'] = $request_post_perPage;
     }
     $request_post_taxonomy = filter_input(INPUT_POST, 'taxonomy', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_taxonomy) {
         $taxonomy = $request_post_taxonomy;
     }
     do_action('wpml_st_load_label_menu');
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy);
         $labels = apply_filters('wpml_label_translation_data', false, $taxonomy);
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     remove_all_filters('gettext_with_context', -1000);
     remove_all_filters('gettext', -1000);
     $args = array();
     $taxonomy = false;
     if (isset($_POST['page'])) {
         $args['page'] = $_POST['page'];
     }
     if (isset($_POST['perPage'])) {
         $args['per_page'] = $_POST['perPage'];
     }
     if (isset($_POST['taxonomy'])) {
         $taxonomy = $_POST['taxonomy'];
     }
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy, $args);
         if (defined('WPML_ST_FOLDER')) {
             $labels = self::get_label_translations($taxonomy);
         } else {
             $labels = false;
         }
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     $args = array();
     $taxonomy = false;
     if (isset($_POST['page'])) {
         $args['page'] = $_POST['page'];
     }
     if (isset($_POST['perPage'])) {
         $args['per_page'] = $_POST['perPage'];
     }
     if (isset($_POST['taxonomy'])) {
         $taxonomy = $_POST['taxonomy'];
     }
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy, $args);
         $labels = self::get_label_translations($taxonomy);
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     $args = array();
     $taxonomy = false;
     $request_post_page = filter_input(INPUT_POST, 'page', FILTER_SANITIZE_NUMBER_INT, FILTER_NULL_ON_FAILURE);
     if ($request_post_page) {
         $args['page'] = $request_post_page;
     }
     $request_post_perPage = filter_input(INPUT_POST, 'perPage', FILTER_SANITIZE_NUMBER_INT, FILTER_NULL_ON_FAILURE);
     if ($request_post_perPage) {
         $args['per_page'] = $request_post_perPage;
     }
     $request_post_taxonomy = filter_input(INPUT_POST, 'taxonomy');
     if ($request_post_taxonomy) {
         $taxonomy = $request_post_taxonomy;
     }
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy, $args);
         $labels = self::get_label_translations($taxonomy);
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }