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 split a url in php

How to split a url in php

February 7, 2018 admin
How to split a website url in php? Using parse_url() function you can split the URL in php $url_str=parse_url(‘http://www.thehindu.com/news/national/highlights-from-prime-ministers-lok-sabha-spe... Read More
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
  • 3 of 27
  • « Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 27
  • 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