Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I pull the proper _wpnonce ID/Number for the “Add Friend Button”

  • Avatar of jmuncy
    jmuncy
    Member

    @jmuncy

    I’m looking to add the “Add Friend” button to below our author images and I’m having a bit of trouble getting the _wpnonce to cooperate. I dug around for an hour but to no avail… I even tried created a new one using “

    My question is how can I pull the appropirate _wpnonce id so that the “Add Friend” button will work wherever I stick it on our site.

    Thanks for any help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of talha8877
    talha8877
    Participant

    @talha8877

    Hi
    Did you able to find a solution for this? I need it exactly for the same purpose.

    Cheers

    Avatar of djlynux
    djlynux
    Participant

    @djlynux

    Got stuck in the same place. Didn’t get a proper solution yet.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    To display an ajax button:

    <div id="members-dir-list"><?php bp_member_add_friend_button(); ?></div>

    But you don’t say where you want to place a button.

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

You must be logged in to reply to this topic.