bp_core_ajax_url()
Get the proper value for BP’s ajaxurl.
Description
Designed to be sensitive to FORCE_SSL_ADMIN and non-standard multisite configurations.
Return
(string) AJAX endpoint URL.
Source
File: bp-core/bp-core-cssjs.php
function bp_core_ajax_url() {
/**
* Filters the proper value for BuddyPress' ajaxurl.
*
* @since BuddyPress 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' ) );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.7.0 | 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.