Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 4
    Thomas on #55918

    Thank you very much Brajesh Singh for the reply. this link “https://www.cabinet.speakexpress.ru/members/me/” will be directed to users own profile.
    but this is my case – i am adding a button to the buddyboss profile via php snippet. i added this link (https://www.cabinet.speakexpress.ru/members/me/) to this php snippet and this link always redirect to own profile or 404.
    this is the php snippet.

    (function my_custom_button() {
    // your button here
    echo ‘ <br/><div class=”mcb”>book now<div> ‘;

    }
    add_filter( ‘bp_before_member_header_meta’, ‘my_custom_button’ ); )

    for example, when a student enters tutors profile and click on the button(book now). the button does not redirect the student to the tutor booking page. but ratter redirect to student own page. and since students dont have the booking function, it takes to the error page.

    thank you

    • This reply was modified 2 weeks, 3 days ago by Thomas.
  • Participant
    Level: Initiated
    Posts: 4
    Thomas on #55908

    hello
    what if i want to create a link for both logged and not-logged users?
    thank you