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.
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' ) ); }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |