Monthly Archives: June 2010

WordPress 3.0 features.

(1) Merging of wordpress and wordpress mu. (2)Custom Post and Custom Taxonomies. (3) Featured image on Posts page. (4) Custom menu management feature. (5) Custom header and background APIs. (6) Custom Username and password. (7) Shortlinks. (8) New login form … Continue reading

Posted in WordPress | Tagged | Leave a comment

Passing parameters to a javascript setTimeout function

setTimeout(function(){myFunction(parameter)},100); time we can change accordingly.

Posted in Javascript | Tagged | Leave a comment

wordpress disable/remove menu submenus

<?php add_action( ‘_admin_menu’, ‘disable_category_menu’); function disable_category_menu () { global $submenu; if (is_site_admin()) { return; } elseif(!empty($submenu[‘edit.php’])) { foreach($submenu[‘edit.php’] as $key => $sm) { if(__($sm[0]) == “Categories” || $sm[2] == “categories.php”) { unset($submenu[‘edit.php’][$key]); break; } } } if (!empty($submenu[‘themes.php’])) { foreach($submenu[‘themes.php’] … Continue reading

Posted in WordPress | Tagged | 18 Comments

Remove wordpress dashboard widgets.

Very good hack to remove wordpress dashboard widgets. add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’ ); function remove_dashboard_widgets() { global $wp_meta_boxes; // Remove the incomming links widget unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_incoming_links’]); // Removes right now unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_right_now’]); // RemovesĀ  primary dashboard unset($wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_primary’]); // Removes secondary dashboard unset($wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_secondary’]); }

Posted in WordPress | Tagged | 10 Comments

Install FTP server on Ubuntu

vsftpd is an FTP daemon available in Ubuntu.To install do the following steps:- sudo apt-get install vsftpd edit /etc/vsftpd.conf change anonymous_enable=YES to anonymous_enable=No uncomment(i.e just remove # in front of these lines) #write_enable=YES #anon_upload_enable=YES and then restart vsftpd sudo /etc/init.d/vsftpd … Continue reading

Posted in Ubuntu | Tagged , | Leave a comment