NEW YORK — The New York Mets terminated David Wright’s rehab assignment because of shoulder pain and ruled Yoenis Cespedes out for the rest of the season with a hamstring injury.

The banged-up Mets announced on Monday that Wright was returning to New York to be re-examined later this week. Wright played third base Friday and Saturday at Class A St. Lucie and decided to have the shoulder pain checked by doctors.

Cespedes strained his right hamstring running the bases in Washington on Friday night. An MRI confirmed the strain, which includes a recovery time of six weeks, ending Cespedes’ season.

The Mets also said outfielder Michael Conforto will have a second opinion Tuesday on his dislocated and torn left shoulder after being examined in New York on Monday.

YANKEES: Slumping slugger Aaron Judge is getting a couple of days off, and New York hopes the rest will help him find his swing.

“Try to refresh him and get him going. He’s played in a lot of games,” Manager Joe Girardi said. “He never wants to sit.”

Judge was out of the lineup Monday night as the Yankees faced 2014 AL Cy Young Award winner Corey Kluber and the Cleveland Indians in the opener of a three-game series. Aaron Hicks played right field in Judge’s place.

Girardi said Judge probably will also sit out Tuesday night, and the plan is to avoid even using him off the bench.

“I told him today, ‘Just take today off. Just take today off and rest your body.’ I think that’s important. And then we’ll get back to work,” Girardi said. “I just want him just to take a mental day and a physical day and just rest. Just rest. He hasn’t had many of those days and I think in the long run this is going to help us.”

Judge leads the American League with 37 home runs and a .581 slugging percentage, but has tailed off dramatically since winning the Home Run Derby during the All-Star break.

The big rookie was batting .179 with seven homers and 16 RBI in the second half, dropping his overall average 49 points to .280.

PIRATES: Pittsburgh placed infielder Adam Frazier on the 10-day disabled list with a strained right hamstring.

The Pirates also recalled outfielder Jordan Luplow and right-hander Dovydas Neverauskas from Triple-A Indianapolis before Monday night’s game against the Chicago Cubs. Right-hander Johnny Barbato was sent down to their top farm club.

Frazier left Sunday’s 5-2 win at Cincinnati after he grounded into a double play in the third inning. The 25-year-old Frazier is batting .280 with four homers and 45 RBI in 104 games in his second major league season.

Neverauskas made his major league debut in April. He is 1-1 with a 3.09 ERA in nine relief appearances with the Pirates.

Luplow is looking for his first major league hit. He went 0 for 9 in four games with Pittsburgh earlier this summer.

ROCKIES: Colorado activated outfielder/infielder Ian Desmond from the disabled list, where he’s been for the last month with a strained right calf.