Skip to:
Content
Pages
Categories
Search
Top
Bottom

Ajax not working in activity


  • magicbmxfreestyle
    Participant

    @magicbmxfreestyle

    Hi all,

    i am looking for the script to place into the bp-default to enable ajax as i have just updated buddypress and the ajax stopped working only on the site wide activity page but works every where else on the website.

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

  • magicbmxfreestyle
    Participant

    @magicbmxfreestyle

    foreach( $actions as $name => $function ) {
    		add_action( 'wp_ajax_'        . $name, $function );
    		add_action( 'wp_ajax_nopriv_' . $name, $function );
    	}

    i remember seeing this code before but i know it’s not the correct call. can someone please help


    Henry Wright
    Moderator

    @henrywright

    The loop you posted simply iterates over the $actions array (assuming it is an array), adding actions for each array element.

    Does this help?


    magicbmxfreestyle
    Participant

    @magicbmxfreestyle

    Hey @henrywright the code im after is to make the ajax work again as it stopped, i use to be able to find it on google, but ive been searching for 6 hours straight now & my memory is bad due to being sick.

    it’s on the buddypress activity stream page that the ajax doesn’t work & using that bit of code above & adding more code into it will make it work, but i just forget what code that may be

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ajax not working in activity’ is closed to new replies.
Skip to toolbar