[wp-hackers] Alternative to posts_where hook

Rich ZenMaster richzenmaster at gmail.com
Tue Aug 10 04:31:50 UTC 2010


ok Sir, Thanks lot for your help.

On Mon, Aug 9, 2010 at 8:46 PM, Michael D Adams <mda at blogwaffe.com> wrote:

> On Mon, Aug 9, 2010 at 8:34 PM, Rich ZenMaster <richzenmaster at gmail.com>
> wrote:
> > http://wpseek.com/hook/posts_where/
>
> I don't know why this site marks posts_where as deprecated.
>
> > http://adambrown.info/p/wp_hooks/hook/posts_where
>
> This claims posts_where is not in 3.0, but it is:
> http://core.trac.wordpress.org/browser/tags/3.0/wp-includes/query.php#L2317
>
>
> I think if you can use WP_Query's query variables for your query, you
> should, but posts_where is here to stay as far as I know.  It'd break
> a lot of stuff [1] if it were ever removed.
>
> [1]
> http://www.google.com/search?q=posts_where+site:http://plugins.svn.wordpress.org/
>
> Mike
> --mdawaffe
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list