echo $plugin_folder= plugins_url(); To get any specific file inside plugin directory use : Here getting path of file ‘widget_newslider11123.html’ insde plugin “books” echo plug...Read More
Current plugin folder path : plugin_dir_path( __FILE__ ) To include a file in this path: include(plugin_dir_path( __FILE__ ).”widgetfile.html”);...Read More
After creating plugin and writing required hooks, we can create tables. We can call these function inside acivation hook. So once we activate the plugin, table creations will be done. /* Plugin Databa...Read More
Using register_uninstall_hook we can register the uninstall hook. /* Plugin Uninstall Hook Here */ register_uninstall_hook(__FILE__, ‘avg_point_uninstall’); function avg_point_uninstall(){...Read More
Using register_activation_hook we can register the activaton hook. /* Plugin Activation Hook Here */ function avg_point_activation(){ global $wpdb; } register_activation_hook(__FILE__, ‘avg_poin...Read More
1. Create a folder in plugins folder . Project Folder >>wp-content >> plugins >> New folder. 2. Name the folder in such a way that related to functionality of plugin. Sample : ...Read More