Forbid certain users to access a specific page
This code will boot out a user if they haven’t authored a post. For the purposes of this example, posts with a status of publish are considered “authored”. I’ve added some comments in the code to walk you through what’s going on – please reach out to me if you have any questions. <?php // … Read more