Skip to content

Instantly share code, notes, and snippets.

View lajennylove's full-sized avatar
🚀
I'm going to have to science the shit out of this.

Jenny Martinez lajennylove

🚀
I'm going to have to science the shit out of this.
View GitHub Profile
<?php
function example_ajax_enqueue() {
// Enqueue javascript on the frontend.
wp_enqueue_script(
'example-ajax-script',
get_template_directory_uri() . '/js/simple-ajax-example.js',
array( 'jquery' )
);