Building an options page for a plugin can be a daunting prospect, so here’s a single class that will help you to create a versatile and user-friendly options page for your plugin that fits neatly into the WordPress dashboard.
If you use links to navigate to other elements on the same page, it’s generally a good idea to animate the scrolling so you don’t disorientate your users. This snippet will make that easy for you.
It’s a common problem with a dozen different solutions – if you’ve ever needed to add a ‘select all’ checkbox to a form in order to make your users’ lives easier then you’ll have searched for a simple way to do it. If you’re using jQuery here’s a very simple method.