I just installed WordPress and run on local machine everything works fine.
So I created one custom plugin under wp-content/plugins
folder as like this:
<?php
/*
Plugin Name: Lottery
Description: Plugin for displaying products from an OSCommerce shopping cart database
*/
?>
So then I run the admin panel in my system the created plugin is not listed on plugins section in my administration
I do not know why its not display custom plugin. Could anyone help me out where I done the mistake or anything I want to import to display my plugin.
2
Answers
To display your plugin name in admin panel you have to give the following code:
Get more details from here https://developer.wordpress.org/reference/functions/add_menu_page/
Make sure your path where you are trying to add your plugin is correct
you can create a new folder inside plugin to make it more specific
then add a php file with same name to identify it more clearly
Add the following file and it you will be done.