Danny van Kooten


Writing code and emails for a living.


  1. WordPress plugin structure, don't load unnecessary code

    When developing WordPress plugins it is important to decide whether code needs to be loaded or not as early in the request lifecycle as possible. Why bother loading unnecessary code and hooking into actions and filters that will never run for the request being made? Having said that, it is…

    on WordPress

  2. Delay scroll (and resize) handlers in JavaScript

    While working on my newest plugin (Scroll Triggered Boxes) I had to attach a handler to the scroll event of the browser window to determine whether a user scrolled down far enough. While the logic for this is pretty simple, I had to put some thought into handling this the…

    on JavaScript, jQuery

  3. Automatically add a MailChimp sign-up form to all posts

    When someone gets to the end of your post, they surely love what you have to say. It makes the end of your posts the perfect spot to ask your visitors to sign-up to your newsletter. It converts well and you're asking right when they're feeling great about your content…

    on MailChimp, WordPress

  4. Add a MailChimp sign-up checkbox to Contact Form 7

    Contact Form 7 is one of the most popular free contact form plugins for WordPress andĀ MailChimp is an enormously powerful email marketing tool. There are quite a few guides on the internet telling you how to make the two work together. Unfortunately, most of them seem to overcomplicate things…

    on MailChimp, Contact Form 7, WordPress

  5. Show a MailChimp sign-up checkbox in your checkout forms.

    If you're running an e-commerce website on WordPress, you're in luck. You probably know how important it is to build your newsletter list throughout the years. One great way to get more people to subscribe to your newsletter is to show a sign-up checkbox in your checkout form. Why ask…

    on WooCommerce, MailChimp, Easy Digital Downloads, WordPress