React Frequent Pages Component

The “React Frequent Pages” component displays the freqently visited pages widget. This component can be customized such as the number of items to show and the look and feel. This is my first contribution to React JS community, please feel free to post if you face any issues while using this component. Installation


Top 11 new features of ES6

ES6 (ECMA Script 6) or ECMA 2015 is the latest version of JavaScript released in June, 2015. ES6 is having lots of cool new features which we are going to explore in the upcoming sessions. Lot of popular JavaScript frameworks such as Angular 2 and React JS are started using the ES 6 features. Currently

PHP style date formats for JavaScript

Developers who worked in PHP know the features of Date functions and formats. The following code will give an idea to implement a PHP style date formats in JavaScript. This class is not a complete solution, it has just only day formats, please extend it to month and year.

How to use this?

JavaScript Method Chaining

Method chaining pattern is very useful to call multiple methods on a same object. This design pattern is very popular in most of the Object Oriented Programming languages such as Ruby, Java, PHP and JavaScript. Nowadays most of the frameworks/CMSs uses Method chaining pattern including jQuery (JavaScript), YII (PHP) and Drupal (PHP) etc. Let’s have

Change post title on the fly

There are situations, where we want to alter the WordPress post title before saving it. Here is the code to append the current user’s name to the post title.


PHP Inheritance

Inheritance allows child classes to use its parent class members. This is very useful when you want to have common functionalities for most of the child classes in the base class. Inheritance in PHP:

  We are going to create a base class called “greetings” which will have a “check_date()” method to check the

PHP Constructor and Destructor

Both constructor and destructor are PHP’s magic methods. Constructor: The constructor function will be automatically called when we instantiate an object when it is being initialized. PHP’s constructor should be defined as: In PHP 5 and above:

    In PHP 4:

Here “yourclassname” must be your actual class name where you have