Skip to content
Archive of posts filed under the Wordpress category.

analyze debug queries output for wordpress

Some time back, my website became too slow and I started getting timeout response for quite a lot of my pages. When I analyzed things, I found the issue was with the DB queries taking a lot of time. So, I thought of getting my hands dirty and started with installing the plugin “Debug Queries”. [...]

Adding a sub-menu in the wordpress admin menu :)

For the impatient ones, first the code: (in wp-admin folder, open the file menu.php) and locate the code: $submenu[\'edit.php\'][10]  = array( _x(\’Add New\’, \’post\’), \’edit_posts\’, \’post-new.php\’ ); and add the below: $submenu[\'edit.php\'][7]  = array( _x(\’Pending\’, \’post\’), \’edit_posts\’, \’edit.php?post_status=pending&post_type=post\’ ); And now the explanation and why do you need this Problem: There is no direct mechanism [...]