Skip to main content
Last Reviewed: May 04, 2022

Pantheon-maintained WordPress Plugins

Pantheon plugins for WordPress.


Pantheon maintains multiple plugins to facilitate workflow within WordPress. For more discussion of these plugins, find Pantheon developers in our community spaces.

Info:
Note

Drupal users should refer to Pantheon Modules for details on Drupal modules developed and maintained for the Pantheon workflow.

Pantheon Must-Use Plugin

Pantheon Must-Use Plugin is vital to the operation of your site on the Pantheon platform and must not be removed from your codebase. Consider it a part of WordPress core, and do not hack it. The permanent activation of this plugin will not interfere with your local environment.

Refer to Create a WordPress MU-Plugin for Actions and Filters for information on how to create a custom MU-Plugin.

Pantheon Advanced Page Cache

Pantheon Advanced Page Cache automatically clears related pages from Pantheon's Edge when you update content. Without this plugin, pages expire from cache after 10 minutes (600 seconds) by default. This plugin allows fresh content to be served immediately to anonymous visitors.

Disable Surrogate Keys for Taxonomy Terms

Setting surrogate keys for posts with large numbers of taxonomies (such as WooCommerce products with a large number of global attributes) can suffer from slower queries. Surrogate keys can be skipped for 'product' post types' taxonomy terms (or any other criteria you see fit) with the following filter:

function custom_should_add_terms($should_add_terms, $wp_query) {
    if ( $wp_query->is_singular( 'product' ) ) {
        return false;
    }
    return $should_add_terms;
}
add_filter('pantheon_should_add_terms', 'custom_should_add_terms', 10, 2);

For additional details, refer to the plugin README file.

Pantheon HUD

Pantheon HUD provides situational awareness within the WordPress Dashboard when working on the Pantheon platform. It's helpful to have a reminder of which environment you're in, as well as quick access to links to get back to Pantheon's Dashboard. This plugin also provides quick access to interface with your WordPress installation via the command line:

Pantheon HUD

Refer to Configuring Environment Indicators for installation details.

WordPress Native PHP Sessions

WordPress Native PHP Sessions resolves errors with code (themes, modules, or plugins) that rely on PHP's default session manager. Refer to WordPress and PHP Sessions for more information.

Troubleshooting WP Native PHP Sessions

If you see an error similar to the following in the error logs:

Fatal error: session_start(): Failed to initialize storage module: user (path: ) in …/code/wp-content/plugins/plugin-that-uses-sessions/example.php on line 2

The cause is likely a plugin in the mu-plugins directory that is instantiating a session prior to this plugin loading. To fix this issue, deactivate the WP Native PHP Sessions plugin and instead load it via an mu-plugin that loads first.

For example, create an mu-plugin called 00.php and add a line in it to include the wp-native-php-sessions/pantheon-sessions.php file.

WP SAML Auth

WP SAML Auth provides support for SAML Authentication. The plugin comes bundled with the OneLogin SAML library and SimpleSAMLphp. Refer to Using WP SAML Auth with Google Apps for an example use case.

Object Cache Pro

Object Cache Pro is a highly optimized premium WordPress plugin that integrates with Redis for business class performance. For more details, see also:

WP Solr

WP Solr enables the Pantheon Search (Solr) search engine for your WordPress website. Refer to Enable Pantheon Search for WordPress for more information.

More Resources