How to disable Pingback & Trackback

99.99% of them are spams

execute the following query:

UPDATE wp_posts SET ping_status=’closed’ WHERE post_status = ‘publish’ AND post_type = ‘post’;
UPDATE wp_posts SET ping_status=’closed’ WHERE post_status = ‘publish’ AND post_type = ‘page’;

And you are done :) Now all of your existing published WordPress posts will have trackbacks disabled as well.

Yes, it works fine.
I only ran the first UPDATE statement, already enough.
Then check an existing POST, you will see the CHECKBOX for pingback is disabled now.