The given PHP example order any multidimensional array based on a specific field. Code Example:
The given PHP example order any multidimensional array based on a specific field. Code Example:
The given PHP example will display the post views within admin post columns into WordPress. Code Example:
The given PHP example allows you to automatically get the first image from the current post, and display it into WordPress. Code Example:
The given PHP example helps you to hide the Front-End dashboard bar from WordPress. Place this in your index.php before wp_footer() is called. Code Example:
The given PHP example helps you to change the login logo and the login link into WordPress. Code Example:
The given PHP example remove the attribute title in a link into WordPress. Code Example:
The given PHP example get the thumbnail URL in WordPress. Code Example:
The given PHP example adds a class to the standard classes in Images in Posts/Pages in WordPress. Code Example:
highlight_string is use to highlight the given php code use the color defined in built in syntax. This function has two parameter: First: the string Second: the bool ture or false If return is set to TRUE, returns the highlighted code as a string instead of printing it out...
<?php $url = $_REQUEST; if(!preg_match("#^http(s)?://+\.{2,4}#i",$url)){ echo "invalid url"; } else{ echo "valid url"; } ?>
The unlink function is use to delete a file physically. The unlink function has one parameter which is the name of the file, if file exist in the same directory, where you want to execute the unlink code then you just give the name of the file, and if...
The fwrite function is use to write the contents on a file. It has two paramaters. First, is the file handler Second, is the string of data that is to be written PHP Code: <?php $file = fopen("test.txt", 'w') or die("can't open this file"); $contents = "Welcome in PHP\n";...