Last active
April 22, 2018 19:40
-
-
Save hawkidoki/88cc95bd4029ed74c697d34670b78b7f 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
<?php | |
// File: /wp-content/themes/my_theme/includes/ajax-actions.php | |
add_action('wp_ajax_my_action', 'hwk_ajax_my_action'); | |
function hwk_ajax_my_action(){ | |
global $wpdb; | |
//$wpdb->get_results("SELECT * FROM ..."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment