wordpress

You should edit the file: wp-includes/version.php to change $wp_version = ‘3.9.3’ to $wp_version = ‘3.9.3-src’. After doing that, a  wordpress site will load development version of javascript files instead of […]

How to write a WordPress plugin?

What is wordpress plugin? A WordPress plugin is a php file in the directory wp-content\plugins\. Complex plugin may have multiple files and more complex directory structure. It can use a […]

strip_tags(“hello <p> world</p>”)–> “hello word” list($a,$b,$c)=$myarray; $a<=$myarray[0],$b<=$myarray[1],$c=$myarray[2] compact(“variablename1″,”variablename2″,…”) returns an array whose members are “variablename1″=>$variablename1, “variablename2″=>$variablename2, …. if $variablename is not in the current scope, compact won’t include it. array_rand($arr) […]

In the previous chapter, we know wp-settings.php is a complex file. This file loads almost everything like plugins and active theme. We will look into it further. After including plugin […]