Disable WordPress Automatic Updates

wordpress-logo-notext-rgbWordPress Automatic updates were  introduced in WordPress 3.7, this means most sites are now able to automatically apply these updates in the background.By default, automatic updates are only enabled for minor core releases and translation files, if you’re on WordPress 3.9.0 and version 3.9.1 is released the application will auto update itself. We will have to update WordPress manually when major version is release, e.g WordPress 4.0 Continue reading

Useful WordPress Plugin: Category Order and Taxonomy Terms Order

taxonomyorder Category Order and Taxonomy Terms Order is a powerful plugin to re-order categories and all custom taxonomies terms using a drag and drop capability. The best thing about this plugin, we don’t need to change theme code just to re-order categories and taxonomies, the plugin will do it for us. Just drag and drop category or taxonomy terms, voila! this plugin sort this out without any programming to theme files.

If multiple taxonomies are created for a custom post type, a menu will allow to chose the one need sorted. If child categories (terms) are defined, those can be order too using the same interface

 

Show and Hidden Files on Mac OS X

Mac OS X 10.8.5
I often edit. htacces, but when downloading or create files. htacces, the files hidden by Mac OS X, I’m currently using OSX 10.8.5. In Mac OS X, files with names that start with a dot (.) are hidden

I’m using Terminal command to reveal the hidden files in OS X  by making a change to the default behavior of Finder. Open Terminal app in Utilities folder (Go > Utilities), type following command :

defaults write com.apple.Finder AppleShowAllFiles TRUE

Press return, type following command to restart Finder

killall Finder

Press return and we could see hidden files.

I’m usually hide these files again because I don’t want hidden files clutter up Finder windows/desktop with extraneous items. Open Terminal app in Utilities folder (Go > Utilities), type following command :

defaults write com.apple.Finder AppleShowAllFiles FALSE

Press return, type following command to restart Finder

killall Finder

WordPress: How to Hide Custom Field Meta Key from Custom Fields panel

WordPress - the logo
I learned this trick when someone asked about How to Hide Custom Fields Meta Key from Custom Fields panel. This trick useful when you want to hide certain Custom Fields Meta Key and Value from client or authors
Custom Fields
Add following code to functions.php

add_filter('is_protected_meta', 'my_is_protected_meta_filter1', 10, 2);
function my_is_protected_meta_filter1($protected, $meta_key) {
    return $meta_key == 'mymetakey_no1' ? true : $protected;
}

This code to hide a Custom Field Meta Key, just change mymetakey_no1 to meta key name that you wanted to hide. What if you want to hide two Meta Key?, add following to functions.php underneath above code
[/php]
add_filter(‘is_protected_meta’, ‘my_is_protected_meta_filter2’, 10, 2);
function my_is_protected_meta_filter2($protected, $meta_key) {
return $meta_key == ‘mymetakey_no2’ ? true : $protected;
}
[/php]