All Questions
2 questions
1
vote
1
answer
95
views
How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount
I'm looking to write a little function that counts how many pages the user has clicked through in this section. When it gets to a certain amount, I want to prompt them to log in and prevent them from ...
1
vote
2
answers
1k
views
remove/hide pages from users backend
I'm using this code in functions.php to hide/remove some pages from custom users backend and works well, but how can I reach to hide the subpages as well?
add_filter( 'parse_query' , '...