BuddyDev

Search

[Resolved] referrer as subject in Message button Shortcode

  • Participant
    Level: Initiated
    Posts: 10
    Han on #27197

    Hi, you made a beautiful post about the message shortcode https://buddydev.com/buddypress-send-private-message-button-shortcode/

    is it possible to enter a subject line? i would like to show the referrer page in the subject line. I have a shortcode that i could echo. the shortcode is made from this post https://stackoverflow.com/questions/4348912/get-title-of-website-via-link

    the shortcode works nice but i cannot seems to get it to work in your code. in fact, i cannot get any subject line to work in your code.

    Greetings, Han

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #27214

    Hi Han,
    I do not think that BuddyPress supports taking subject from the url parameters.

    It is still possible to do but the code needed will be beyond that shortcode. Someone can most probably filter on ‘bp_get_messages_subject_value’ to make it work via url parameter too.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Han on #27323

    Thank you Brajesh, opens up legio possibilities 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #27337

    You are welcome.

The topic ‘ [Resolved] referrer as subject in Message button Shortcode’ is closed to new replies.

This topic is: resolved