Skip to content
  • Home
  • About
  • Contact

How To Find It

Tips For Program

  • Home
  • HTML
    • HTML
    • Jquery & Javascript
    • css
  • Php
  • sql
  • wordpress
    • woocommerce
      • Woocommerce Hooks
    • Plugin developement Tips
  • General

Category: Plugin developement Tips

How to get the current plugin folder url in WordPress?

How to get the current plugin folder url in WordPress?

October 13, 2017 admin
plugin_dir_url( )  function is used to get the current url. Sample: $imgurl=plugin_dir_url( __FILE__ ).”placeholder.png”;... Read More
How to get the plugin folder path in wordpress?

How to get the plugin folder path in wordpress?

October 13, 2017 admin
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
How to get the current plugin folder path in WordPress?

How to get the current plugin folder path in WordPress?

October 13, 2017October 13, 2017 admin
Current plugin folder path : plugin_dir_path( __FILE__ ) To include a file in this path: include(plugin_dir_path( __FILE__ ).”widgetfile.html”);... Read More
How to create custom tables for wordpress plugin ?

How to create custom tables for wordpress plugin ?

October 11, 2017 admin
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
How to register uninstall hook  plugin?

How to register uninstall hook plugin?

October 11, 2017 admin
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
How to register activation hook and deactivation hook for plugin?

How to register activation hook and deactivation hook for plugin?

October 11, 2017 admin
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
How to create a plugin in wordpress?

How to create a plugin in wordpress?

October 7, 2017October 7, 2017 admin
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

Recent Posts

  • Advanced WordPress Interview Question
  • How to include styles and scripts on wordpress admin pages?
  • Page Template dropdown missing from page attribute in wordpress
  • How to add a logo uploading field in customize settings in wordpress
  • How to add a new page in wordpress admin

Categories

  • css (13)
    • Bootstrap (2)
  • General (14)
  • HTML (10)
  • Jquery & Javascript (39)
    • OOP javascript (11)
  • Php (39)
    • Amzon s3 and Php (3)
  • sql (2)
  • wordpress (154)
    • Hooks & Filters (1)
    • Plugin developement Tips (7)
    • woocommerce (50)
      • Woocommerce Hooks (17)
Theme Designed by InkHive. How to find it © 2016