public function get_post_trid($args) { list($blog_id, $username, $password, $element_id) = $args; if (!$this->sitepress->get_wp_api()->get_wp_xmlrpc_server()->login($username, $password)) { return $this->sitepress->get_wp_api()->get_wp_xmlrpc_server()->error; } $post_element = new WPML_Post_Element($element_id, $this->sitepress); return $post_element->get_trid(); }