Skip to content

Instantly share code, notes, and snippets.

@n7studios
Created February 6, 2020 14:23
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 n7studios/598f633ba376f5476a560c4a1432d186 to your computer and use it in GitHub Desktop.
Save n7studios/598f633ba376f5476a560c4a1432d186 to your computer and use it in GitHub Desktop.
Page Generator Pro: Disable Automatic Copying of Must-Use Plugin
<?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