Class ‘WP_Widget’ not found
You should never work on core files which are inside wp-admin and wp-includes folder. You’ll be just working on wp-content folder. If you’re developing a plugin, you can directly put the code in your main plugin file or you can put the file inside of your plugin folder and include that file in the plugins … Read more