Skip to content

Instantly share code, notes, and snippets.

@elvismdev
Last active September 9, 2019 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elvismdev/21f2ac700ad8564eb6d52f1581a710c0 to your computer and use it in GitHub Desktop.
Save elvismdev/21f2ac700ad8564eb6d52f1581a710c0 to your computer and use it in GitHub Desktop.
Example usage filter `wpcfm_multi_env` to disable multi-environment feature in Pantheon
<?php
// wp-content/mu-plugins/wp-cfm-multi-env.php
// ...
// Return empty array to disable multi-environment feature.
function my_wpcfm_multi_env_disable( $environments ) {
return [];
}
add_filter( 'wpcfm_multi_env', 'my_wpcfm_multi_env_disable' );
// Or, one liner.
add_filter( 'wpcfm_multi_env', '__return_empty_array' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment