Using Flare with WordPress for error tracking — vanrossum.dev                    

       vanrossum.dev 

Article

Using Flare with WordPress for error tracking
=============================================

 ![](https://vanrossum.dev/images/jeffrey-portrait.webp)By Jeffrey van Rossum

  [home](https://vanrossum.dev)/[posts](https://vanrossum.dev/posts)/using-flare-with-wordpress-for-error-tracking 

 February 27, 2024 · 1 min read 

Using Flare with WordPress for error tracking
=============================================

 ![Jeffrey van Rossum](https://vanrossum.dev/images/jeffrey.png)Jeffrey van Rossum

Product engineer · builds &amp; ships his own products

  share [ 𝕏 ](https://twitter.com/intent/tweet?url=https%3A%2F%2Fvanrossum.dev%2Fposts%2Fusing-flare-with-wordpress-for-error-tracking&text=Using+Flare+with+WordPress+for+error+tracking) [ WhatsApp ](https://wa.me/?text=Using+Flare+with+WordPress+for+error+tracking+https%3A%2F%2Fvanrossum.dev%2Fposts%2Fusing-flare-with-wordpress-for-error-tracking) [ LinkedIn ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fvanrossum.dev%2Fposts%2Fusing-flare-with-wordpress-for-error-tracking)

Flare, for me at least, is mostly known as an error tracker for Laravel applications. However, the service is framework agnostic and can be used for other frameworks, including WordPress, as well. So how do you add it to your WordPress site?

Flare's recommended approach
----------------------------

To install Flare on a WordPress site, there already exists an [article over at the Flare website](https://flareapp.io/blog/track-wordpress-errors-with-flare).

The instructions there require you to alter `wp-config.php`. This is probably the most solid solution, as the error and exception handlers are set very early in the booting process - making sure you actually catch all errors.

These are the instructions from the article. First, run this in the root of your wordpress project:

```bash
composer require facade/flare-client-php

```

Then add this at the top of your `wp-config.php` file:

```php
require_once(__DIR__.'/vendor/autoload.php');

Facade\FlareClient\Flare::register('YOUR_FLARE_TOKEN')
  ->registerFlareHandlers();

```

Using Flare with a WordPress plugin
-----------------------------------

But in the case you don't want to change `wp-config.php`, you can also use a little plugin I created. You'll find it [here at GitHub](https://github.com/jeffreyvr/flare-for-wp).

Once you've downloaded and installed the plugin, head on over to your admin area and go to `Tools` --&gt; `Flare for WP`. There you can fill in your project's API key - and you're done.

The handlers are set as early as possible from the context of a plugin (`plugins_loaded` hook). If you really need to catch all errors, you should use the method described earlier.

 ![](https://vanrossum.dev/images/jeffrey.png)Questions or thoughts about this post?

 [say hi on 𝕏 →](https://x.com/jeffreyrossum) 

✍️ More posts

  [all posts →](https://vanrossum.dev/posts) 

 [ DocSigner: sign PDFs in your browser Jul 2026 ](https://vanrossum.dev/posts/docsigner-sign-pdfs-in-your-browser) [ I sold 143 licenses and never asked for feedback Jul 2026 ](https://vanrossum.dev/posts/i-sold-143-licenses-and-never-asked-for-feedback) 

   © 2026 Jeffrey van Rossum · [privacy](https://vanrossum.dev/privacy) · [terms](https://vanrossum.dev/terms) · [cookies](https://vanrossum.dev/cookies) [𝕏](https://x.com/jeffreyrossum) [YouTube](https://www.youtube.com/@jeffrey.rossum) [GitHub](https://github.com/jeffreyvr) [LinkedIn](https://www.linkedin.com/in/jeffrey-van-rossum-97b27321) [Instagram](https://www.instagram.com/jeffrey.rossum/) [Nomads](https://www.nomads.com/@jeffreyrossum/) [Unsplash](https://unsplash.com/@jeffreyrossum) 

 made with ☕
