• Resolved chatty24

    (@chatty24)


    Hi

    I want to redirect from one page to another with the help of if statement in functions.php

    I am doing this for buddypress. Here is what I want :

    if user is logged in and is on link “/notifications” then redirect to

    “<?php bp_loggedinuser_link() ?>/notifications”

    What I am trying to do is make a single link for buddypress dynamic links. So, if someone goes to “/notifications” he would be redirected to if own notifications page.

    Can anybody tell me that how to write the above in form of code?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Redirect with if statement’ is closed to new replies.