400+
April 3, 2026
November 4, 2015
Rollbar collects errors that happen in your application, notifies you, and analyzes them so you can debug and fix them.
This plugin integrates Rollbar into your WordPress installation.
Please note:
In order to use this plugin, a Rollbar account is required.
You can at least support the plugin development and rate it up!
This plugin is a community-driven contribution. All rights reserved to Rollbar.
The installation and configuration of the plugin are as simple as it can be.
The easiest way to install the plugin is from the WordPress Plugin directory. If you have an existing WordPress
installation, and you want to add Rollbar:
Plugins Add New.Rollbar by Rollbar in the search results.Install Now next to the Rollbar plugin.Plugins Installed plugins find Rollbar and click Activate underneath.Warning: This installation method might not be suitable for complex WordPress projects. The plugin installed this
way will be self-contained and include all of the required dependencies for itself and the rollbar/rollbar-php
library. In complex projects, this might lead to version conflicts between dependencies and other plugins/packages. If
this is an issue in your project, we recommend the “Packagist” installation method.
Note: this only works if your WordPress project is managed with Composer.
Read Using Composer with WordPress for more details.
This is a recommended way to install the Rollbar plugin for advanced projects. This way ensures the plugin and all of
its dependencies are managed by Composer.
You can install the plugin by running the following command in the root directory of your WordPress project:
`
composer require rollbar/rollbar-php-wordpress:^3.0
`
Note: if your WordPress project is managed with Composer, we strongly recommend installing the plugin through
Packagist instead.
Installing the plugin from wpackagist.org instead of packagist.org will result in the plugin being managed by
Composer. However, the downside is that it’s dependencies will not be managed by composer. Instead they will be packaged
in the plugin’s vendor directory not in your project’s vendor directory. This has the potential to cause name
collisions if other plugins or your project use different versions of the same dependencies.
To install the plugin from wpackagist.org run the following steps command in the root directory of your WordPress
project:
`
composer require wpackagist-plugin/rollbar
`
The plugin can be configured in the WordPress Admin or programmatically.
WordPress Admin
The plugin provides a settings page in the WordPress Admin that allows you to configure the plugin. This settings page
can be disabled by setting the ROLLBAR_DISABLE_ADMIN constant to true in your wp-config.php file.
Plugins Installed plugins find Rollbar and click Activate underneath.Settings Project Access Tokens.post_client_item and post_server_item.Settings Rollbar:
PHP error logging and/or Javascript error logging depending on your needs.Access Token section.Environment. By default, the environment will be taken from WP_ENVdevelopment orSave Changes.Programmatic Configuration
The plugin can also be configured programmatically. This is useful if you want to configure the plugin in a more
advanced way or if you want to disable the admin settings page.
`
// wp-config.php
// Configure the plugin.
define( ‘ROLLBAR_SETTINGS’, [
‘php_logging_enabled’ => true,
‘server_side_access_token’ => ”,
‘js_logging_enabled’ => true,
‘client_side_access_token’ => ”,
‘environment’ => ‘development’,
‘included_errno’ => E_ERROR,
‘enable_person_reporting’ => true,
] );
// Optional: disable the admin settings page so the plugin is configured only programmatically.
define( ‘ROLLBAR_DISABLE_ADMIN’, true );
`
Yes, of course. Additionally, you can assign different environments to each of your blogs.
Yes. It’s actually the recommended method of installation. You can install the rollbar/rollbar-php-wordpress package
using composer.
rollbar_js_nonce filter to allow customizing the nonce used in the Rollbar JS snippet.ROLLBAR_DISABLE_ADMIN to remove the plugin settings page from the admin.ROLLBAR_SETTINGS to configure the plugin without the admin page.ROLLBAR_CLIENT_ACCESS_TOKEN constant or environment variable to set the client access token.WP_PROXY_BYPASS_HOSTS, WP_PROXY_USERNAME, and WP_PROXY_PASSWORD for better proxy management.rollbar_api_admin_permission filter to allow custom authorization of the admin API.rollbar_user_can_view_admin filter to allow custom disabling of the admin page.rollbar_php_config filter to allow more exact control over Rollbar PHP configurations.rollbar_telemetry_actions filter to allow control of which actions are logged via telemetry.rollbar_telemetry_custom_handlers filter to allow custom control over what is logged in telemetry messages.plugins_loaded hook to the invocation of the main plugin file (https://github.com/rollbar/rollbar-php-wordpress/issues/73)Enable as a Must-Use plugin settings (https://github.com/rollbar/rollbar-php-wordpress/issues/73)rollbar_plugin_settings filter| Version | Download | Type |
|---|---|---|
| 3.1.3 | Download | Stable |
| 3.1.2 | Download | Stable |
| 3.1.1 | Download | Stable |
| 3.1.0 | Download | Stable |
| 3.0.0 | Download | Stable |
| 2.7.1 | Download | Stable |
| 2.7.0 | Download | Stable |
| 2.6.3 | Download | Stable |
| 2.6.2 | Download | Stable |
| 2.6.1 | Download | Stable |
| 2.6.0 | Download | Stable |
| 2.5.1 | Download | Stable |
| 2.5.0 | Download | Stable |
| 2.4.10 | Download | Stable |
| 2.4.9 | Download | Stable |
| 2.4.8 | Download | Stable |
| 2.4.7 | Download | Stable |
| 2.4.6 | Download | Stable |
| 2.4.5 | Download | Stable |
| 2.4.4 | Download | Stable |
| 2.4.3 | Download | Stable |
| 2.4.2 | Download | Stable |
| 2.4.1 | Download | Stable |
| Development | Download | Trunk |