Skip to content

Instantly share code, notes, and snippets.

View gr1zix's full-sized avatar
🎯
Focusing

Grizix gr1zix

🎯
Focusing
View GitHub Profile
@rfmeier
rfmeier / functions.php
Last active October 27, 2024 23:45
Append a GROUP BY clause to the current WP_Query SQL clause for the search.
<?php
/**
* Do not include php tags
*/
add_filter( 'posts_groupby', 'custom_posts_groupby', 10, 2 );
/**
* Callback for WordPress 'posts_groupby' filter.
*
* Set the GROUP BY clause to post IDs.
@valerysntx
valerysntx / xhrpool.js
Created May 3, 2013 04:25
xhrPool - extendable async xml requests pool, with sequent callbacks per xhr
// xhrPool - async xml requests pool, with sequent callbacks per xhr
//
$.xhrPool = [];
$.xhrPool.callbacks = [];
$.xhrPool.starthandlers = [];
$.xhrPool.onEnd = function (name, obj, opts) {