language_pair_records = $language_pair_records; } public function get_role() { return 'translator'; } public function get_nonce() { return self::NONCE_ACTION; } public function get_capability() { return WPML_Translator_Role::CAPABILITY; } public function get_user_row_template() { return 'translators-row.twig'; } public function on_user_created( WP_User $user ) { $language_pairs = $this->post_vars->post( 'languagePairs' ); $this->language_pair_records->store( $user->ID, $language_pairs ); $user->data->language_pairs = $this->post_vars->post( 'languagePairs' ); } public function on_remove_role( WP_User $user ) { delete_user_meta( $user->ID, WPML_TM_Wizard_Options::ONLY_I_USER_META ); } public function send_instructions_to_user( WP_User $user ) { // Not needed at this stage. } }