Where are WordPress default widget files or functions located?

Viewed 32358

I'm trying to slightly modify the default WordPress tag cloud widget. I don't want to create my own widget because I literally want to adjust one small thing. I've looked through my WordPress installation but can't find the PHP file that contains the basic widgets.

Even though I assume that they are defined in each theme, I still looked in the core directories but came up empty handed.

So if any of you happen to have already figured this out, please make my life easier and let me know where I can find the default widgets...most importantly the tag cloud widget.

Thanks

3 Answers

do take into account however that you'll lose your change when you upgrade wordpress (which is why I eventually did create my own shabby category-cloud widget instead of changing the default tag-cloud code).

The tag cloud widget is defined near the bottom of the default-widgets.php file in the wp-includes folder.

Related