[wp-hackers] apply_filters() in an if statement?

Nathan Rice ncrice at gmail.com
Wed Feb 29 21:00:09 UTC 2012


Micky, they're callback functions in WordPress that do exactly what they
imply, so you don't have to use anonymous functions or create your own
callback function that just returns true.

Any yes, they are extremely handy :-)

------------------
Nathan Rice
WordPress and Web Development
www.nathanrice.net | twitter.com/nathanrice


On Wed, Feb 29, 2012 at 3:52 PM, Micky Hulse <mickyhulse.lists at gmail.com>wrote:

> WOW! Super fast replies! Thanks so much Mario and Nathan! Your replies
> have been very helpful. :)
>
> I'm experimenting now with the information and code you folks have
> given me (I may be back with questions).
>
> @Nathan: using false looks better to me (v.s. using an empty sting).
>
> Also, '__return_true'/'__return_false' is new syntax to me... I
> uderstand what it does, I just have never seen that particular syntax
> before.
>
> You folks ROCK!!! Many thanks! :)
>
> Cheers,
> M
> _______________________________________________
> 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