1. Replace the entire tuning peg: If the tuning peg is severely damaged or the break is irreparable, it may be necessary to replace the entire tuning peg. This involves removing the old tuning peg, drilling a new hole for the new peg, and installing the new peg. This is the most reliable repair method, but it can be more time-consuming and expensive than other options.
2. Repair the snapped headstock: If the tuning peg snapped off at the headstock, it may be possible to repair the headstock and reattach the tuning peg. This involves gluing the broken pieces back together, reinforcing the repair with dowels or screws, and refinishing the headstock to match the rest of the guitar.
3. Install a string ferrule: In some cases, it may be possible to install a string ferrule to provide a new anchor point for the string. This involves drilling a hole through the headstock, inserting the string ferrule, and securing the string with a screw or nut. This is a relatively simple and inexpensive repair method, but it may not provide as much strength and stability as replacing the entire tuning peg.
It is important to note that repairing a snapped tuning peg should be done by a qualified guitar technician or luthier to ensure proper installation and to prevent further damage to the guitar.