Where to put custom widget file?
If you created a custom widget, created a file by example class.my-widget.php containing the class definition of the custom widget, something like this: class my_widget extends WP_Widget { public function __construct() { //logic here } public function widget($args, $instance) { //logic here } public function form($instance) { //logic here } public function update($new_instance, $old_instance) { … Read more