• Does anybody know of a way to override the default widgets (in wp-includes) using the functions.php file for a theme?

    I’ve modified the file, specifically the Categories widget to allow an extra field which can be used to exclude categories from the list. However, I’m worried this file may get restored back to default and the added functionality lost when a new upgrade for WordPress is released.

    Thinking about it, is it worth worrying over as it still might not work after the upgrade if the API changes. Oh dear, what to do???

Viewing 1 replies (of 1 total)
  • Just copy the default widgets into your functions.php, rename them so you don’t have function/class name conflicts, and edit them however you want.

    Thinking about it, is it worth worrying over as it still might not work after the upgrade if the API changes.

    Yes. Core hacks get overwritten every time you upgrade. Chances are the API isn’t going to change that frequently.

Viewing 1 replies (of 1 total)
  • The topic ‘Default Widgets & Theme Functions’ is closed to new replies.