Hunters learn Feed Pet at level 10 from the Training the Beast quest. Here is where to learn it for every race, how feeding works, what each pet eats and which food to buy.
To feed your Hunter pet in World of Warcraft: Forever, cast Feed Pet and click a food in your bags that your pet's family eats. You learn Feed Pet at level 10 from the "Training the Beast" quest, the last step of the Hunter taming quests.

Once you know the spell, feeding works the same every time:
Note: Feed Pet sits in the Beast Mastery tab of your spellbook (P), so drag it onto your action bar right after you learn it.
At level 10, your Hunter trainer gives you three "Taming the Beast" quests. The third one teaches Tame Beast, Call Pet and Dismiss Pet, so you have a pet before you can feed it.
The same trainer then gives you "Training the Beast". Turn it in at the trainer below to learn Beast Training, Feed Pet and Revive Pet:
| Race | Taming Quests From | Turn In Training The Beast At |
|---|---|---|
| Dwarf | Grif Wildheart, Kharanos | Belia Thundergranite, Ironforge (70.8, 85.4) |
| Human | Josephine Carson, Goldshire | Isaac Chan, Goldshire (41.8, 66.4) |
| Night Elf | Dazalar, Dolanaar | Jocaste, Darnassus (40.2, 8.8) |
| Orc, Troll | Thotar, Razor Hill | Ormak Grimshot, Orgrimmar (66.2, 18.2) |
| Skyborne | Quel'ana Quickgale, Valanaar | Quel'dora Quickgale, Valanaar (59.6, 72.6) |
| Tauren | Yaw Sharpmane, Bloodhoof Village | Holt Thunderhorn, Thunder Bluff (57.4, 89.2) |
A freshly tamed pet is unhappy and deals less damage, so travel to this trainer as soon as you finish the third taming quest. Buy food your pet eats on the way, so you can feed it the moment you learn the spell.
Horde Hunters turn in "Training the Beast" in Thunder Bluff or Orgrimmar, depending on their race:

Tauren Hunters go to Holt Thunderhorn on Hunter Rise in Thunder Bluff, at /way 57.4, 89.2. Hunter Rise is the mesa in the south of the city.

Orc and Troll Hunters go to Ormak Grimshot in Orgrimmar, at /way 66.2, 18.2. He stands in the Valley of Honor in the northeast of the city.

Alliance Hunters have one trainer for each race:

Dwarf Hunters visit Belia Thundergranite in Ironforge, at /way 70.8, 85.4, in the Military Ward.

Night Elf Hunters find Jocaste in the Cenarion Enclave of Darnassus, at /way 40.2, 8.8, in the north of the city.

Human Hunters have the shortest trip. Isaac Chan stands right next to the Hunter trainer in Goldshire, at /way 41.8, 66.4.

Skyborne Hunters do not need to travel either. Quel'dora Quickgale stands next to Quel'ana Quickgale in Valanaar on Zephras Isle:

You find both of them at /way 59.6, 72.6. For the rest of the Skyborne starting zone, see How To Unlock The Skyborne Race.

Feeding raises your pet's happiness, which decides how much damage it deals. The icon next to your pet's portrait shows its current state:

Loyalty gives your pet more training points for Beast Training. An unhappy pet keeps losing loyalty and can eventually run away, so feed it again whenever the icon turns from green to yellow.
Happiness also drops slowly over time, when your pet dies and when you dismiss it. Dismissing your pet costs 50 happiness, so it is usually better to leave it out and let it follow you.
Every pet family eats only certain food types, and your pet refuses anything outside its diet. There are six food types in total:

| Pet Family | Diet |
|---|---|
| Bat | Fungus, Fruit |
| Bear | Meat, Fish, Cheese, Bread, Fungus, Fruit |
| Bird of Prey | Meat |
| Boar | Meat, Fish, Cheese, Bread, Fungus, Fruit |
| Carrion Bird | Meat, Fish |
| Cat | Meat, Fish |
| Crab | Fish, Bread, Fungus, Fruit |
| Crocolisk | Meat, Fish |
| Fox | Meat |
| Gorilla | Fungus, Fruit |
| Hyena | Meat, Fruit |
| Raptor | Meat |
| Scorpid | Meat |
| Spider | Meat |
| Tallstrider | Cheese, Fungus, Fruit |
| Turtle | Fish, Fungus, Fruit |
| Wind Serpent | Fish, Cheese, Bread |
| Wolf | Meat |
Bears and Boars eat every food type, which makes them the easiest pets to keep happy. From level 24, Beast Lore shows a beast's diet before you tame it, so check it before you swap pets.
Note: Raw meat that beasts drop, such as Stringy Wolf Meat, counts as meat, and raw fish from Fishing counts as fish. Keep it for your pet instead of selling it.
Food close to your pet's level gives the most happiness, and food far below its level does very little or is refused. These are the vendor foods for each level range, sold by innkeepers and food vendors:
| Pet Level | Meat | Fish | Cheese | Bread | Fungus | Fruit |
|---|---|---|---|---|---|---|
| 1 to 10 | Tough Jerky | Slitherskin Mackerel | Darnassian Bleu | Tough Hunk of Bread | Forest Mushroom Cap | Shiny Red Apple |
| 11 to 20 | Haunch of Meat | Longjaw Mud Snapper | Dalaran Sharp | Freshly Baked Bread | Red-speckled Mushroom | Tel'Abim Banana |
| 21 to 30 | Mutton Chop | Bristle Whisker Catfish | Dwarven Mild | Moist Cornbread | Spongy Morel | Snapvine Watermelon |
| 31 to 40 | Wild Hog Shank | Rockscale Cod | Stormwind Brie | Mulgore Spice Bread | Delicious Cave Mold | Goldenbark Apple |
| 41 to 50 | Cured Ham Steak | Striped Yellowtail | Fine Aged Cheddar | Soft Banana Bread | Raw Black Truffle | Moon Harvest Pumpkin |
| 51 to 60 | Roasted Quail | Spinefin Halibut | Alterac Swiss | Homemade Cherry Pie | Dried King Bolete | Deep Fried Plantains |
Each vendor only stocks some food types, so look for one that sells your pet's diet before you leave town.
If Feed Pet does not work, one of these is usually the reason:
Hunters can also train new weapon types, such as Bows and Guns, which is covered in How To Learn Weapon Skills (All Weapon Masters).