Last active
September 9, 2019 15:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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