Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/seenkid/restrictedcontentredirect/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
RestrictedContentRedirect
This code allows you to block some pages to unlogged users on your wordpress website.
Just go to your plugins folder, create a new folder called RestrictedContentRedirect and drag the RestrictedContentRedirect.php file inside.