Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • 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)

  • talha8877
    Participant

    @talha8877

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

    Cheers


    djlynux
    Participant

    @djlynux

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


    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)
  • The topic ‘How do I pull the proper _wpnonce ID/Number for the “Add Friend Button”’ is closed to new replies.
Skip to toolbar