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

Author: admin

How to get get the client IP address in PHP ?

How to get get the client IP address in PHP ?

February 7, 2018 admin
For all the questions related to server, or current files, or  system using, you get the answer from a single php global variable: it is $_SERVER. just print_r($_SERVER) the variable you get all the ... Read More
Display coupons used in an order in woocommerce

Display coupons used in an order in woocommerce

November 6, 2017 admin
Use any order hooks.  here we get the deatils of coupen once cancelled the order from orders list add_action(‘woocommerce_order_status_cancelled’, ‘order_cancelled_woo’); orde... Read More
Ajax return 0 in wordpress

Ajax return 0 in wordpress

October 31, 2017 admin
Use echo instead of return a value from ajax function . { echo ‘locked’; die(); }... Read More
How to add a new user meta field for all users in wordpress

How to add a new user meta field for all users in wordpress

October 16, 2017October 16, 2017 admin
$users = get_users(); foreach( $users as $user ) { $uid=$user->ID; add_user_meta($uid, ‘newfield’,’0′); } }... Read More
Adding a meta data once a new user is created in wordpress?

Adding a meta data once a new user is created in wordpress?

October 16, 2017October 16, 2017 admin
Add Custom User Meta During Registration in WordPress add_action( ‘user_register’, ‘bonus_point_for_new_user’); function bonus_point_for_new_user( $user_id ) { add_user_meta($u... Read More
Undefined message showing while new category adding?

Undefined message showing while new category adding?

October 16, 2017 admin
Check whether is there any space before or after php opening and closing tag respectively in functions.php. If not deactivate each plugin and identify which plugin causes the issue, Then remove the ex... Read More
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 create a file and include in php code?

How to create a file and include in php code?

October 13, 2017 admin
$file_var= fopen(“newfile.html”, ‘w’); fwrite($file_var= , $html_elements); fclose($file_var); To use this file in html code: include(“newfile.html”);... 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
  • 3 of 26
  • « Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 26
  • Next »

Recent Posts

  • 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
  • Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.

Categories

  • css (13)
    • Bootstrap (2)
  • General (13)
  • 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. howtofindit©2021