What he said is good but it is not mandatory. The knowledge you must learn is the one that you can’t worship Allah people without.
For example, a person is going for hajj. It is a must for him to learn about the rulings of hajj so that he can worship Allah properly.