[wp-hackers] Widget Weirdness - Doesn't like the file name widgets.php

Ryan McCue lists at rotorised.com
Tue Jun 28 08:38:19 UTC 2011

Andrew Nacin wrote:
> For plugins, there's plugin_dir_path(), which is just an alias for dirname(__FILE__), my personal preference in general.

Worth noting that plugin_dir_path() will trailingslashit() though, so 
it's personal preference as to which of those you'd prefer.

Ryan McCue

More information about the wp-hackers mailing list