Skip to content

Instantly share code, notes, and snippets.

View EvilBozkurt's full-sized avatar
🏠
Working from home

Mehmet Bozkurt EvilBozkurt

🏠
Working from home
View GitHub Profile
@devinsays
devinsays / example-ajax-enqueue.php
Last active October 4, 2023 13:09
Simple WordPress Ajax Example
<?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' )
);
@zhuixinjian
zhuixinjian / search suggestion api
Created January 19, 2016 02:56
search suggestion api
http://sugg.search.yahoo.net/sg/?output=jsonp&nresults=10&command=%s
http://sugg.search.yahoo.net/sg/?output=json&nresults=10&command=%
http://sugg.search.yahoo.net/sg/?output=xml&nresults=10&command=%s
http://api.bing.com/osjson.aspx?query=%s
http://google.com/complete/search?output=xml&q=%s