Created
February 6, 2020 14:23
-
-
Save n7studios/598f633ba376f5476a560c4a1432d186 to your computer and use it in GitHub Desktop.
Page Generator Pro: Disable Automatic Copying of Must-Use Plugin
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 | |
/** | |
* Plugin Name: Page Generator Pro: Disable Automatic Copying of Must-Use Plugin | |
* Plugin URI: http://www.wpzinc.com/ | |
* Version: 0.0.1 | |
* Author: WP Zinc | |
* Author URI: http://www.wpzinc.com | |
* Description: Stops Page Generator Pro automatically copying the Must-Use Plugin into the wp-content/mu-plugins folder on each update | |
*/ | |
/** | |
* Stops Page Generator Pro automatically copying the Must-Use Plugin into the wp-content/mu-plugins folder on each update | |
* | |
* @since 0.0.1 | |
* | |
* @param bool $copy_mu_plugin Copy Must-Use Plugin on Update | |
* @return bool Copy Must-Use Plugin on Update | |
*/ | |
function page_generator_pro_copy_mu_plugin( $copy_mu_plugin ) { | |
return false; | |
} | |
add_filter( 'page_generator_pro_install_copy_mu_plugin', 'page_generator_pro_copy_mu_plugin' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment