Privacy
-
hi there we can see a privacy page ?
it is good this ?<?php
/*
Plugin Name: Site Private
Description: Simplest plugin that redirects unauthorized users to login page, except for the privacy policy page.
Version: 1.3
Author: Gaiaz Iusipov
*/defined(‘ABSPATH’) or exit;
function siteprivate_redirect()
{
global $pagenow;// Get the current page URL $current_url = home_url($_SERVER['REQUEST_URI']); // Check if the user is trying to access the privacy policy page $privacy_page_url = 'https://www.publicmusic.it/privacy-estesa/'; // If the user is not on the login page, not logged in, and not on the privacy page, redirect to login if ('wp-login.php' !== $pagenow && !is_user_logged_in() && !is_user_member_of_blog() && $current_url !== $privacy_page_url) { auth_redirect(); }}
add_action(‘template_redirect’, ‘siteprivate_redirect’);
The page I need help with: [log in to see the link]
The topic ‘Privacy’ is closed to new replies.