bp_core_add_ajax_url_js()
Define the ‘ajaxurl’ JS variable, used by themes as an AJAX endpoint.
Description
Source
File: bp-core/bp-core-cssjs.php
function bp_core_add_ajax_url_js() {
?>
<script>var ajaxurl = '<?php echo bp_core_ajax_url(); ?>';</script>
<?php
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.1.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.