taxonomy = 'nav_menu'; parent::__construct( $id, $sitepress, $this->taxonomy, $wpml_cache ); } /** * @param stdClass $element_data standard object containing at least the `term_id` property * * @return WPML_Menu_Element * @throws \InvalidArgumentException */ function get_new_instance( $element_data ) { return new WPML_Menu_Element( $element_data->term_id, $this->sitepress, $this->wpml_cache ); } }