Created
October 10, 2015 15:05
-
-
Save Dinamiko/09c079ff2b1963c423a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* creamos la variable ajaxurl y la imprimimos en el head | |
*/ | |
function encuesta_crea_ajaxurl() { ?> | |
<script type="text/javascript"> | |
var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>"; | |
</script> | |
<?php } | |
add_action('wp_head','encuesta_crea_ajaxurl'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment