PARIS — President Trump criticized the American soccer player Megan Rapinoe in a three–tweet blast on Wednesday morning after she colorfully said in an interview that she would not go to the White House if the United States wins the Women’s World Cup.
Mr. Trump said Rapinoe “should never disrespect our country, the White House or our flag.”
“I am a big fan of the American Team, and Women’s Soccer, but Megan should WIN first before she TALKS! Finish the job!’’ Mr. Trump wrote, and then said he would invite the team to the White House win or lose. The United States plays the host France on Friday in a bid to advance to the semifinals.
He made a range of comments — touching on the N.B.A., too — and concluded by urging Ms. Rapinoe to “be proud of the flag that you wear.”
Mr. Trump took to Twitter after a video of Ms. Rapinoe’s interview went viral. In it, she used an obscenity to dismiss the idea of visiting the White House.
Ms. Rapinoe, 33, has been an outspoken critic of the president, and caused a stir in 2016 when she became one of the few white players to join Colin Kaepernick and others when they were leading an ongoing protest against racism and police violence by kneeling for the national anthem at sporting events.
Ms. Rapinoe, a co-captain of the team, is also a party to its gender discrimination lawsuit against U.S. Soccer. She is gay and is an outspoken supporter of L.G.B.T.Q. rights.
U.S. Soccer rewrote its rules for national team players after Ms. Rapinoe’s kneeling protest, and now requires players to stand respectfully for the anthem. Ms. Rapinoe chose not to contest the new rule, and has stood silently for the anthem ever since.
Trump’s criticism appears to have been sparked by Ms. Rapinoe’s remarks made weeks ago during a photo shoot for the cover of a soccer magazine. On Tuesday, the magazine, 8 by 8, tweeted an excerpt from the interview in which she answered a question about going to the White House.
In his tweet, Trump also started a tangent about the N.B.A., saying it was the only league that had not accepted the traditional invitation to the White House after a championship. No N.B.A. champion has visited the White House since the Cleveland Cavaliers in 2016, when President Barack Obama’s second term was winding down.
Mr. Trump initially tagged the wrong Twitter account, citing @meganrapino instead of @mpinoe. The incorrectly tagged account responded in good humor, saying that the president was likely to be a boon for getting followers.
Trump corrected the error shortly afterward.