Skip to content

Instantly share code, notes, and snippets.

@bogdan-mainwp
Last active December 6, 2018 13:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan-mainwp/5f3c74f443e351ed203756df9559b856 to your computer and use it in GitHub Desktop.
Save bogdan-mainwp/5f3c74f443e351ed203756df9559b856 to your computer and use it in GitHub Desktop.
Custom snippet that will disable site size calculation. In case of inability to connect a child site, it is good to try to use this on the child site.
<?php
// Add the following code snippet to the functions.php file of the active theme of your Child Site site.
add_filter( 'mainwp-child-get-total-size', 'mycustom_mainwp_child_get_total_size', 10 , 1 );
function mycustom_mainwp_child_get_total_size( $value ) {
return false;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment