Last active
December 6, 2018 13:59
-
-
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.
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 | |
// 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