Sometimes, when you are deploying a WordPress installation, the primary audience may be registered users, rather than the general public. In this instance, you could want to avoid the need to continually change the ‘visibility’ attribute of each post to ‘private’ from public.
To achieve this, navigate to the ‘meta-boxes.php’ file, located in wp-admin/includes/ folder.
Find the following code:
$visibility = 'public';
$visibility_trans = __('Public');
And change it to the following:
$visibility = 'private';
$visibility_trans = __('Private');
Check that it’s worked by adding a new post and all being well, that’s that.