bp_core_ajax_url()

Get the proper value for BP’s ajaxurl.


Description Description

Designed to be sensitive to FORCE_SSL_ADMIN and non-standard multisite configurations.


Return Return

(string) AJAX endpoint URL.


Top ↑

Source Source

File: bp-core/bp-core-cssjs.php

function bp_core_ajax_url() {

	/**
	 * Filters the proper value for BuddyPress' ajaxurl.
	 *
	 * @since 1.7.0
	 *
	 * @param string $value Proper ajaxurl value for BuddyPress.
	 */
	return apply_filters( 'bp_core_ajax_url', admin_url( 'admin-ajax.php', is_ssl() ? 'admin' : 'http' ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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