You appear to be a bot. Output may be restricted
Description
Implement "posts_where" filter to search for attachments as wellWhen the post type also includes 'attachment', we expect to find
wp_posts.post_status = 'publish'but need it to be
wp_posts.post_status IN ('publish', 'inherit' )
Usage
$string = oik_types_posts_where( $where, $this_parm );
Parameters
- $where
- ( string ) required – the current where clause
- $this_parm
- ( array ) required –
Returns
string the updated where clauseSource
File name: oik-types/oik-types.phpLines:
1 to 5 of 5
function oik_types_posts_where( $where, $this_parm ) { $where = str_replace( "= 'publish'", "IN ( 'publish', 'inherit' )", $where ); //bw_trace2(); return( $where ); }View on GitHub