bbp_get_ajax_url()

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


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/common/ajax.php

	function bbp_get_ajax_url() {
		global $wp;

		$ssl      = bbp_get_url_scheme();
		$url      = trailingslashit( $wp->request );
		$base_url = home_url( $url, $ssl );
		$ajaxurl  = add_query_arg( array( 'bbp-ajax' => 'true' ), $base_url );

		// Filter & return
		return apply_filters( 'bbp_get_ajax_url', $ajaxurl );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.