Way to bulk delete menu items in new 3.x Appearance > Menus system?

I had to do this too, but didn’t find a quick and easy way. Since jQuery is available in the wp admin, I used that to select all the delete links and trigger the click event on them:

jQuery('#menu-to-edit')
    .find('.submitdelete')
    .trigger('click');

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)