bbp_get_ajax_url()

Return the URL to use for theme-side Forums AJAX requests

Description

Return

(string)

Source

File: bp-forums/common/ajax.php

	function bbp_get_ajax_url() {
		global $wp;

		$base_url = home_url( trailingslashit( $wp->request ), ( is_ssl() ? 'https' : 'http' ) );
		$ajaxurl  = add_query_arg( array( 'bbp-ajax' => 'true' ), $base_url );

		return apply_filters( 'bbp_get_ajax_url', $ajaxurl );
	}

Changelog

Changelog
Version Description
bbPress (r4543) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.