complete list of wordpress url rewrite rules
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 […]
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 […]
$_SERVER[‘REQUEST_URI’] is what you type in your address bar of your browse(no protocol and host part). $_SERVER[‘PHP_SELF’] is the url of the first file loaded(no protocol and host part) with […]
First, we should know that isset and empty are php language construct while is_null is a function. So you won’t get an E_NOTICE when passing undefined variable to isset or […]
php require() will die if the included file has a syntax error even the error line is not executed(i.e., within a function that is not called) for example: file1.php <?php […]
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 […]
A few things about js replace method: var anotherstr=str.replace(/<[^<>]+>/g, function(m) { return m.replace( /__i__|%i%/g, n );}); First, str.replace does not change str itself, the result is saved in anotherstr. Second, […]
jQuery slideDown function shows an element from top to bottom in specified time. slideUp function hides an element from bottom to top in specified interval. $(element).slideDown(interval, function(){}); $(element).slideUp(interval, function(){}); […]
I’ve been confused with javascript event model for long time. You must know there are two event models in javascript: capturing model and bubbling model. Every article describing event model […]
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 […]