How to conditionally restrict access to rtmedia component?
-
Hi,
I want to temporarily restrict access to rtmedia pages for newly registered members of my site, until their account is approved by admin. My site uses buddypress. I want to simply redirect them to the homepage if they try to access any rtmedia page, including their own.
i know how to do everything except identify if they are on an rtmedia page.
Would something like bp_is_current_component() work?
For example ..
if( //check if not approved yet// && bp_is_current_component('rtmedia') ) {
// redirect to homepage // }
I’d appreciate any help.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to conditionally restrict access to rtmedia component?’ is closed to new replies.