How to update the counter of private pages in the dashboard?
How to update the counter of private pages in the dashboard?
How to update the counter of private pages in the dashboard?
Can’t locate a hidden private page
Show certain posts in a LIST format that members have been granted access to
Subscriber (with read permissions) cannot view Private posts
I have made the following code for you to copy and paste in to your functions.php file. I’m sure there is a simpler solution, however this is the working solution I came up with. The first part of the section adds the new roles. function anakeme_custom_roles() { add_role( ‘level_1’, ‘Level 1’, [ ‘read_private_pages’ => true, … Read more
You can use the post_password_required filter. function wpse406803_whitelist_author( $required, $post ) { //Check if current user is the post author if ( $post->post_author == get_current_user_id() ) { return false; } } add_filter( ‘post_password_required’, ‘wpse406803_whitelist_author’, 10, 2 );
Are you doing this inside The Loop? I’d try something like this myself: if ($post->post_status == “private” && !is_user_logged_in()) { echo “You must be logged in to view this page.”; } else if( $post->post_status == “private” && is_user_logged_in() ) { // Page code goes here }
No, user data is not visible to the outside world, or to google, unless you specifically make it visible in the theme somehow. One piece of user data is exposed for authors of posts though. Specifically, their login names are visible in many places.
The first thing you need to do is disable direct access to the directories the files are stored in by uploading blank index.html files to wp-content/uploads/ and all of its subdirectories. That way no one can go browsing around your upload directories finding that media manually. In order to keep search engines from crawling your … Read more
Search engines SHOULD respect the industry standard robots.txt file which you could use to block access to a post type. Such as blocking access to anything under example.com/deals. You could also go above and beyond and check the $_SERVER[‘HTTP_USER_AGENT’] for bots. Something like: $bot_list = array(“Teoma”, “alexa”, “froogle”, “Gigabot”, “inktomi”, “looksmart”, “URL_Spider_SQL”, “Firefly”, “NationalDirectory”, “Ask … Read more