Description
Implement "filter_where" filter for bw_get_posts()Create a new filtering function that will add our where clause to the query Note: This filter can only be applied once. It automatically clears itself. Is this OK ? If not, we'll have to remove the filter after the get_posts – which is tiresome.
Usage
oik_batchmove_filter_where( $where );Parameters
- $where
- ( mixed ) optional –
Returns
voidSource
File name: oik-batchmove/admin/oik-batchmove.phpLines:
1 to 10 of 10
function oik_batchmove_filter_where( $where = '' ) { global $bw_filter; if ( isset( $bw_filter ) ) { $where .= $bw_filter; //unset( $bw_filter ); unset( $GLOBALS['bw_filter'] ); } bw_trace2(); return( $where ); }View on GitHub View on Trac
