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: wordpress

How to add extra fields to taxonomy in wordpress?

How to add extra fields to taxonomy in wordpress?

October 13, 2017 admin
To add extra fields to taxonomy or category use below hook: add_action(‘categoryname’_add_form_fields,’function_name’); Sample: function add_extra_fields() { ?> <div clas... Read More
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 a menu in dashboard for plugin?

how to create a menu in dashboard for plugin?

October 11, 2017 admin
add_action(‘admin_menu’, ‘avg_rate_add_page’); function avg_rate_add_page(){ // Add main menu add_menu_page(‘Bonuspoints’, ‘Bonus point’, ‘adminis... Read More
How to add fields in wp-usermeta table in wordpress?

How to add fields in wp-usermeta table in wordpress?

October 11, 2017 admin
Inside a function or any where add below code : add_user_meta(‘userid ”new_field_name’,’value’); eg: add_user_meta(‘1’, ‘bonus_points’,’1... Read More
How to add fields in wp-option table in wordpress?

How to add fields in wp-option table in wordpress?

October 11, 2017October 11, 2017 admin
Inside a function or any where add below code : add_option(‘new_field_name’,’value’); eg: add_option(‘bonus_points_for_price’,’1′); Getting value from t... 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
  • 2 of 16
  • « Previous
  • 1
  • 2
  • 3
  • 4
  • …
  • 16
  • Next »

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