the do order of several important actions in WordPress
WordPress action order is an important thing to consider when you call add_action to add your hook function to a specific action. Here is the order for some important actions. […]
WordPress action order is an important thing to consider when you call add_action to add your hook function to a specific action. Here is the order for some important actions. […]
WordPress url rewrite has nothing to do with .htaccess file. WordPress url rewrite is done in wp() in wp-blog-header.php. wp() eventually calls parse_request in class WP, where a set of […]
We should know first what sidebar is in WordPress. A WordPress page is divided into header, sidebar, content, and footer. A WordPress page is displayed according to the page […]
WordPress widget is good re-usable component for developing WordPress sites. You must have dragged and dropped widgets in wordpress admin panel. If you are a wordpress savvy, you may have […]
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 […]
You probably think in a WordPress’ php file it will echo a <script src=’xxx’> in order to load a javascript file to the generated HTML, like <?php …. echo “<script […]
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 […]
The first php file loaded when you access a WordPress site is index.php under the root directory of the site. It is a very simple file with only 2 lines […]