Removed visibility from function in functions.php (causes error in WP)