Is [admin / admin] acceptable for all local websites?

As @montrealist says, using an insecure username and password combination on a local webserver installation that is not publicly accessible is not necessarily a security concern. If the server is publicly accessible, a secure username and password should be used of course.

How to protect wp-admin through .htaccess?

Basically, it should look like this: AuthType Basic AuthName NAME_THIS_THING AuthUserFile PATH_TO_USER_FILE <Files ‘*’> Require valid-user </Files> <Files ‘admin-ajax.php’> Allow from all Satisfy any </Files> Replace the upper case parts with something real. admin-ajax.php is the only file that should be available without restriction. The details of the user file are a little bit out … Read more

Secure Pages Best Practice

Not sure about the best practices, but I have a few custom login-sensitive pages which simply display a message if user is not logged and is trying to view the page directly: $logged_in = is_user_logged_in(); if($logged_in) { ?> <article id=”post”> <?php the_content(); ?> </article> <?php } else { _e(‘You are not logged in. Please ‘, … Read more

Restrict custom post type from appearing with ?post_types=

register_post_type() has quite a few related arguments, of which publicly_queryable controls precisely what you are describing. However note that it will completely kill the CPT on front end — individual posts, archives, even post previews. If you want to do this conditionally you’ll have to manage this with code from scratch, which might get very … Read more