Converting theme widgets to plugins?

Other than order of execution it doesn’t really matter where code is run.

In general case you can move code to Functions File (functions.php) of theme or create simple plugin and it will still work.

In this specific case the code seems to be part of WooFramework so you will need to additionally check so that it isn’t declared twice (causing error), for example by using function_exists().

Leave a Comment

tech