July 29, 2013

Keep Backup Daily – How to restore your backup files?

phpMyAdmin Database Import

Keep Backup Daily – How to restore your backup files? Question: If I run backups daily and I get hacked etc. how / where do I upload the backup to? Answer: You can restore your backup from WordPress admin too. But this is a reality that if you are hacked then how will you have […]

July 25, 2013

How to update set of secrete keys in WordPress?

Question: Hi, I am new to wordpress blog management. One of my friend told me that once development phase will be over so must update set of wordpress secrete keys. Can you please help me out that how can i do it? Answer: Thank you that you installed and start using WP Mechanic. Please open […]

July 19, 2013

How to use https for every content on your site?

If you are unable to have few contents with https then do a simple trick. Use file_get_contents() and store http content in a variable.

WordPress HTTPS

WordPress HTTPS

WordPress HTTPS WordPress HTTP, WordPress HTTPS, .htaccess HTTP, .htaccess HTTPS

July 8, 2013

PHP Function – Time Difference or Time Ago

PHP Function – Time Difference or Time Ago function _ago($time_to, $time_from = 0) { if($time_from==0) time(); $rtc = 60*60*24; //ROUND THE CLOCK $total_weeks = 52.177457; //ESTIMATE NO. OF WEEKS $years = (int)((($time_from – $time_to)/(7*$rtc))/$total_weeks); $rem = (int)(($time_from-$time_to)-($years * $total_weeks * 7 * $rtc)); $weeks = (int)(($rem)/(7*$rtc)); $days = (int)(($rem)/$rtc) – $weeks*7; $hours = (int)(($rem)/3600) – […]

June 28, 2013

A good WordPress plugin

WordPress Plugins

A good WordPress Plugin article is been written for those guys who are developing a no. of WordPress plugins but not concentrating on quality. WordPress is enjoying a good share of whole w3 so it seems good when few hundred or thousand people downloads your plugin and give good comments. Developers code more plugins and keep it going on. It would be great if everyone could concentrate on a specific solution but master it fully. So w3 will get reliable and time saving solutions on every platform.
Happy Coding!

June 22, 2013

How WP Mechanic Will Work?

WordPress Mechanic - WordPress Plugin

How WP Mechanic Will Work? WordPress mechanic is a combination of FAQ feeds, blog items, consolidated tips and suggestions from WordPress gurus on wp-admin dashboard for those who are not familiar with technicalities. They don’t need to Google every small issue, just browse with WordPress mechanic or ask a new question if they are tired […]

June 19, 2013

Woocommerce CSV importer – Resume Feature

Woocommerce CSV importer – Resume Feature if(!function_exists(‘wce_gallery_resume’)){ function wce_gallery_resume($post_id){ $files = array(); $check_image = get_post_meta($post_id, ‘_product_image_gallery’, true); $check_image = is_array($check_image)?$check_image:explode(‘,’,$check_image); if(!empty($check_image)){ foreach($check_image as $image){ $i = basename(get_post_meta($image, ‘_wp_attached_file’, true)); $files[$i] = $image; } } return $files; } } How to use this? Locate this file “include/woocommerce-csvimport-functions.php” Locate function “woocsv_import_products_from_csv” Locate this line “if ( isset( […]