Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#1859 closed defect (bug) (no action required)

undefined functions when hooking a function returned by ajax.

Reported by: windhamdavid's profile windhamdavid Owned by:
Milestone: 1.2 Priority: major
Severity: Version:
Component: Keywords:
Cc:

Description

functions return undefined when hooking into a function returned by ajax
http://buddypress.org/forums/topic/call-to-undefined-function-bp_activity_update_meta

Change History (2)

#1 @johnjamesjacoby
15 years ago

I have a feeling we will need a do_action( 'bp_ajax_init' ); somewhere...

#2 @apeatling
15 years ago

  • Resolution set to invalid
  • Status changed from new to closed

You should be using the wp_ajax_ hook to run your AJAX functions and using the ajaxurl parameter in JS as the request URL. If you do that then the WP environment should be loaded as well as BuddyPress. Basically exactly how all ajax is done in bp-default.

Note: See TracTickets for help on using tickets.