How to Change Placeholder In Post Title
In WordPress Admin, You can change Placeholder of `Post Title` by using following code into your theme’s `functions.php` file. Add this Code into your theme’s functions.php file
In WordPress Admin, You can change Placeholder of `Post Title` by using following code into your theme’s `functions.php` file. Add this Code into your theme’s functions.php file
Here is little Snippets of WordPress that I’d like to share with you.Following code will help you to display complete list of all the settings from `options` table of database. You can see this page in “wp-admin –> Setting –> All Settings“. Add Following code to your theme’s `functions.php` file: function enable_all_settings_link() { add_options_page(__(‘All Settings’),… Continue reading Enable Hidden Admin Feature Displaying ALL Site Settings
~~~~~Enjoy Typing~~~~~ Common – Keyboard Shortcuts 1. CTRL+C (Copy) 2. CTRL+X (Cut) 3. CTRL+V (Paste) 4. CTRL+Z (Undo) 5. DELETE (Delete) 6. SHIFT+DELETE (Delete the selected item permanently without placing the item in the Recycle Bin) 7. CTRL while dragging an item (Copy the selected item) 8. CTRL+SHIFT while dragging an item (Create a shortcut… Continue reading Computer Keyboard Shortcut Keys
Hello everyone, Today i am sharing little information about MySql alteration with database table. I have added following function to help you to create column in db table if column not exist. /** * To Add Column In Table If Not Exist. * @param $db_name Database Name * @param $table Table Name * @param $column… Continue reading How To Add Column In Table If Not Exist ?
Hello!,Here i have added php code for getting all days of week from given date. Following function will help you to get this. /** * Get all days of week. * @param date $date */ function getDaysOfWeek( $date ) { list($day, $month, $year) = explode( “-“, date(‘d-m-Y’, strtotime($date)) ); // Get the weekday of the… Continue reading How to get all days of week from given date.
Following function calculates the distance between two points (given the latitude/longitude coordinates of those points).The calculated distance can be shown in following units. Miles Nautical Miles Kilometeres Meters Yards Feet Inches Here is the function to calculate distance between two points :- /** * Get distancce between two points. * eg.:- $point1 = array(‘lat’ =>… Continue reading How to get distance between two points ?
You can sort an Array by value with following function:- function sortByValue (&$array, $key){ $sorter=array(); $return=array(); reset($array); foreach ($array as $ii => $va) { $sorter[$ii] = $va[$key]; } asort($sorter); foreach ($sorter as $iii => $va) { $return[$iii] = $array[$iii]; } $array=$return; return $array;} Have Fun!
Here are some `HTTP standard status codes`, that i want to share with you. Hope this will help you some way. 100 Continue101 Switching Protocols102 Processing (WebDAV; RFC 2518)200 OK201 Created202 Accepted203 Non-Authoritative Information (since HTTP/1.1)204 No Content205 Reset Content206 Partial Content207 Multi-Status (WebDAV; RFC 4918)208 Already Reported (WebDAV; RFC 5842)226 IM Used (RFC 3229)300… Continue reading List of HTTP status codes
WordPress will automatically add the image Width and Height attribute in the image element. If you want to remove height and width attributes from the image elements it can be done with the following filters:- post_thumbnail_html – Filter any post thumbnails. image_send_to_editor – Filter the HTML when adding a image to the editor. Add this… Continue reading Remove Height & Width Attributes From Images In WordPress
Following process will add pending post count in admin menu items..You also can change as your need.. Edit the theme’s `function.php` and add following line of code :- First, add hook to admin menu //Add hook to Admin Menu.add_action(‘admin_menu’, ‘notification_count_in_admin_menu’); Now add function that will alter you menu with notification count. function notification_count_in_admin_menu(){ global $menu;… Continue reading How to add notification bubble to WordPress admin menu