Its a awesome article published by Lain on Deliciousbrains showing the structure and design of all WordPress tables in a WordPress multisite network. He also explains how they are connected using foreign key.
Its a awesome article published by Lain on Deliciousbrains showing the structure and design of all WordPress tables. He also explains how they are connected using foreign key.
HTML5 localStorage lets you store key/value pairs of data. Both key and value needs to be a string. To store arrays as a key or value you need to encode the array into a JSON string. And while retrieving you need to decode it back to an array. Here is example code var array = […]
HTML5 localStorage lets you store key/value pairs of data. Both key and value needs to be a string. To store objects as a key or value you need to encode the object into a JSON string. And while retrieving you need to decode it back to an object. Here is example code var object = […]
HTML5 Audio Element provides an duration property to retrieve the length of the video file. Here is example code on how to use the property
Here is a function which takes an email address and checks if an gravatar exists or not. function validate_gravatar($email) { // Craft a potential url and test its headers $hash = md5(strtolower(trim($email))); $uri = ‘http://www.gravatar.com/avatar/’ . $hash . ‘?d=404′; $headers = @get_headers($uri); if (!preg_match("|200|", $headers[0])) […]
WordPress themes while displaying author bio and comments use the get_avatar function to retrieve the avatar. get_avatar function requests avatar from Gravatar. If gravatar returns a image then get_avatar functions returns that image otherwise returns the default image. WordPress by default provides some default images, you need to select any one. You can also add […]
This post is a part 49 of Intel XDK Complete Tutorial post series. Chat apps are becoming very popular among users. Learning the overall architecture of a chat app is important for developers. In this tutorial I will show you how to create a chat app using Intel XDK. All the codes and technologies of […]
In this tutorial I will show you how to get WordPress post published date as time difference i.e., 2 days ago, 5 months ago etc. Here is the code to get in this format <?php $time = get_post_time("U", true, $post_id); $time = human_time_diff($time, current_time(‘timestamp’)) . " ago"; echo $time;
Most Commented