-
Cyril Batillat replied to the topic Extending ajax parameters in the forum Creating & Extending 10 years, 4 months ago
You’re right. But I would like to stay compatible with other plugins who could alter the comment form as well. If every plgin use its own custom callback, it would be a mess.
-
Cyril Batillat replied to the topic Extending ajax parameters in the forum Creating & Extending 10 years, 4 months ago
Thanks @henrywright
I have managed to add additional fields on comment form. Now my goal is to pass the values of these new fields in the ajax call, to be able to use some hooks like ‘bp_activity_comment_posted’ and more…
That’s why I’m asking the best way to pass additional data.Thanks you for directing me on Trac, I created a new ticket.
-
Cyril Batillat started the topic Extending ajax parameters in the forum Creating & Extending 10 years, 4 months ago
Hi,
I’m quite new to BuddyPress.
I’m trying to extend activity comment posting possibilities.Looking at buddypress.js, the data sent to wp-ajax.php is witten like this :
[Read more]
var ajaxdata = {
action: 'new_activity_comment',
'cookie': bp_get_cookies(),
'_wpnonce_new_activity_comment': jq("#_wpnonce_new_activity_comment").val(),…
@cyrilbatillat
Active 3 years, 1 month ago