You appear to be a bot. Output may be restricted
Description
Add a filter to allow searching by guidWordPress does not normally allow us to access posts by the GUID but we need this to find if we've previously cloned this content; as an exact clone.
Usage
oik_clone_match_add_filter_field( $filter );
Parameters
- $filter
- ( string ) required – an additional where clause such as "AND guid = 'http://qw/wpms/phphants/?page_id=1648'"
Returns
voidSource
File name: oik-clone/admin/oik-clone-match.phpLines:
1 to 13 of 13
function oik_clone_match_add_filter_field( $filter ) { global $bw_filter; if ( !isset( $bw_filter ) ) { add_filter( "posts_where", "oik_clone_match_filter_where" ); $bw_filter = null ; } $bw_filter .= " "; $bw_filter .= $filter; bw_trace2(); //p( "Added: $filter" ); //p( "Filter is now: $bw_filter" ); }View on GitHub