I am using wp_redirect() to restrict access to logged out users and redirect them to login page. Here’s my code which works perfecly.
But what if, I want to redirect all logged out users who access this specific URLs?
please note that the “www.example.com/users/” doesnt change, the only changing characters are the UserProfileA-Z. Where UserProfileA – Z is equal to the usernames of my WordPress users.
I’ve tried using is_page() with wild card (user/)* but it’s not working.
any idea how to make this work?
Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com