Skip to content

Instantly share code, notes, and snippets.

@Mamaduka
Created March 30, 2012 08:13
Show Gist options
  • Save Mamaduka/2249358 to your computer and use it in GitHub Desktop.
Save Mamaduka/2249358 to your computer and use it in GitHub Desktop.
<?php
/**
* Returns the AJAX url
*/
function mamaduka_ajax_url() {
$scheme = is_ssl() ? 'https' : 'http';
return admin_url( 'admin-ajax.php', $scheme );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment