I’ve been working with WordPress for over 5 years now.

Unfortunately, my memory isn’t as great as I’d like - I sometimes have to look up the codex to remember the names of various hooks and actions.

So I’ve decided to put together a quick list of some of my most used code snippets for future reference — if only to save myself the time of having to search/read through codex pages.

Adding Scripts and CSS files to a plugin

Creating a custom post type

Adding an custom admin page

Creating a custom List Table

Creating a shortcode

These are the main code snippets I use regularly — if you have any requests for other code snippets, let me know and I’ll add them here.