Hernandez initially joined Leeds on loan from Al-Arabi in the summer of 2016 when Garry Monk was the head coach of the Whites.
In April 2018, the Spaniard put pen to paper on a contract extension which will see him remain at Elland Road until the summer of 2020.
Hernandez is now 33 years of age, and the former Valencia and Swansea City star has revealed that he plans to be at Leeds for two more years at least.
The attacker has also stated that he would like to play for Spanish club CD Castellon before he retires.
“I renewed for two years and hopefully I will be here at least until I am 35,” Hernandez told Marca.
Hernandez added: “I have always said that I would like to be able to wear the Castellon shirt before I retire, but football has taught me not to look beyond the day-to-day. In two years when I finish my contract, we will see where Castellon is and where I am.”
Hernandez is one of the best attacking players in the Championship, and the performances of the 33-year-old for Leeds have been superb.
With the Whites aiming to challenge for the Championship playoffs, the 33-year-old will be a key player for Marcelo Bielsa’s side.
Hernandez has scored one goal and provided two assists in two Championship appearances for Leeds so far this season, according to WhoScored.