Category Archives: plugins

List all hooked functions

10. List All Hooked Functions The problem. When things go wrong, listing all hooked functions can be very useful for debugging. The solution. As with the others, this code has to be pasted in your functions.php file. When you have … Continue reading

Posted in plugins, Wordpress | Tagged , | Comments Off

add submenu to custom type

Here’s an example of adding an option page under a custom post type menu block: <?php add_submenu_page(‘edit.php?post_type=wiki’, ‘Options’, ‘Options’, ‘manage_options’, ‘wiki-options’, array(&$this, ‘options_page’) ); ?> from the wordpress codex http://codex.wordpress.org/Adding_Administration_Menus

Posted in plugins, Wordpress | Tagged , , | Comments Off

WordPress Plugin Query

I am often cutting and pasting this in wordpress plugins $query = “SELECT id, post_title FROM ” . $wpdb->prefix . “posts WHERE post_type = ‘wpf_venue’ AND post_status=’publish’”; $venues = $wpdb->get_results ( $query, ARRAY_A );

Posted in plugins, Wordpress | Tagged , , , , | Comments Off

Speed up WordPress

After a bit of digging around inside wp-ecommerce the category images were loading like a 300 k progressive jpg on a 5.6k modem – not cool. So after a forum search on getshopped.org this plugin was recommened http://wordpress.org/extend/plugins/w3-total-cache/

Posted in plugins, Wordpress | Tagged , | Comments Off