Possiamo abilitare o disabilitare tutti i commenti in WordPress con due semplici query SQL. Vediamo come fare.
Nelle due query che seguono, i valori open
e closed
, indicano rispettivamente che i commenti per ciascun post sono aperti o chiusi:
UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed';
UPDATE wp_posts SET comment_status = 'open', ping_status = 'open';