Site-Specific Plugins: When, Why, and How To Use Them in WordPress

If you’ve ever built your own Wordpress theme (or customized/added to someone else’s), you’re almost certainly familiar with the functions.php file. In many cases, this file (included with each theme) can be an excellent place to write some PHP snippets which affect the behavior of your site. But it is not always the best place to place PHP snippets, and here’s why.