Useful uninstall option “snippet” for your WordPress theme admin option. Basically, this reverts WordPress to the default theme and removes all theme settings from the database. Change option your_theme with your own: global $wpdb; delete_option(‘your_theme’); switch_theme(‘default’, ‘default’); wp_cache_flush(); wp_redirect(‘themes.php?activated=true’); exit();
Author Archive for zeo
Untitled
Not updating for quite a long time. Well, I’m not the only one but almost everyone that I knew… I wonder why? Other commitment maybe?
WordPress Olive T-Shirt
Grab yours at WordPress Shop now.
iTerm keep-alive
This is a note to self on how to enable iTerm keep-alive or anti-idle option. Open iTerm. Go to Bookmarks → Manage Profiles… . In Profiles window, browse to Terminal Profiles and expand the menu by clicking the triangle. Choose and click on Default. Tick the “When idle, sends ASCII code” and set its value [...]
WordPress Comment Form Skip Link
Skip link (or Skip Navigation link) for comment form is really important when your entry has a lot of comments. But there’s no point in having one when your comment form is just few pixel away after the entry. This is how you can show the skip link if the comment reach n number of [...]
Iron Man
I’ve been listening to Black Sabbath’s “Iron Man” song over and over again.