library/Admin/General.php
public function renamePrivate()
    {
        if (!is_admin()) {
            return;
        }

        if (get_current_screen()->action !== '' && get_current_screen()->action !== 'add') {
            return;
        }

        add_filter('gettext', function ($translation, $text, $domain) {
            if ($text !== 'Private') {
                return $translation;
            }

            return __('Only for logged in users', 'municipio');
        }, 10, 3);
    }
public function renamePrivate()
    {
        if (!is_admin()) {
            return;
        }

        if (get_current_screen()->action !== '' && get_current_screen()->action !== 'add') {
            return;
        }

        add_filter('gettext', function ($translation, $text, $domain) {
            if ($text !== 'Private') {
                return $translation;
            }

            return __('Only for logged in users', 'municipio');
        }, 10, 3);
    }
public function renamePrivate ( ) { if ( ! is_admin ( ) ) { return ; } if ( get_current_screen ( ) -> action !== '' && get_current_screen ( ) -> action !== 'add' ) { return ; } add_filter ( 'gettext' , function ( $ translation , $ text , $ domain ) { if ( $ text !== 'Private' ) { return $ translation ; } return __ ( 'Only for logged in users' , 'municipio' ) ; } , 10 , 3 ) ; }
Renames the "private" post visibility to "only for logged in users"
@return void
Renames the private post visibility to only for logged in users