bp_core_add_ajax_url_js()

Define the ‘ajaxurl’ JS variable, used by themes as an AJAX endpoint.


Description Description


Source Source

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

function bp_core_add_ajax_url_js() {
?>

	<script type="text/javascript">var ajaxurl = '<?php echo bp_core_ajax_url(); ?>';</script>

<?php
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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