how to override buddypress function using hook?
I am developing locally with all recent versions on wp, bp and bbp.
Now, I need to override one of the redirect from one of the bp functions namely, messages_screen_compose(), which resides in buddypress > bp-mesages > bp-messages-screen.php
the relevant line of the function I need changed conditionally (when called from my intended page), without affecting it’s original role is
bp_core_redirect( bp_loggedin_user_domain() . $bp->messages->slug . ‘/view/’ . $thread_id . ‘/’ );
Can I do that using action or filter hook?
- The topic ‘how to override buddypress function using hook?’ is closed to new replies.