selected(), checked(), disabled(), your do-it-for-me buddies

These little guys are quite helpful in cleaning up your form HTML code.

How many times do you end up running this code over and over:

A whole lot, probably. Me too. WordPress gives you selected(), checked() and disabled() to clean up your code a bit.

So that’s nice. checked() and disabled() work exactly as you’d expect them to.