Restrict WordPress to Private

I want to set up a private WordPress site, with only 2 users, all I need is a simple private site functionality, with visitors unable to see anything when trying to login, only being redirected to the login page. RSS should also be blocked. I have found one plugin which does this, but it doesn’t … Read more

Why can outer Java classes access inner class private members?

I observed that Outer classes can access inner classes private instance variables. How is this possible? Here is a sample code demonstrating the same: class ABC{ class XYZ{ private int x=10; } public static void main(String… args){ ABC.XYZ xx = new ABC().new XYZ(); System.out.println(“Hello :: “+xx.x); ///Why is this allowed?? } } Why is this … Read more

Making a Custom Post type only visible to non-users via a specific link

I am working on creating a small web-app with wordpress as the framework. It allows you to input a customer and in turn sends an email to the customer with a link back to the website in order to complete a short survey. I have a “Customer” Custom Post Type which includes the survey questions … Read more

Restricting access to files within a specific folder [duplicate]

This question already has answers here: Closed 9 years ago. Possible Duplicate: How to Protect Uploads, if User is not Logged In? Is there any way at all to restrict direct access to files within a specific folder to only specific wordpress users that have that specific capability set? 1 Answer 1 The easiest php … Read more