comment_approved custom value

I’d hazard a guess that it isn’t possible — at least not in this exact way — because of that default: return false; part of the code you reference: a custom value of the comment status will hit that and the function will stop immediately. However, have you thought about using a comment metavalue to store … Read more

How to hide and disable URL and email fields from comments?

After further research I found some relevant functions. Keep in mind it’s probably better to separate these into different functions, and if your WordPress theme gives you any trouble, check this out. // disable url field function disable_comment_url($fields) { if(isset($fields[‘url’])) unset($fields[‘url’]); return $fields; } add_filter(‘comment_form_default_fields’, ‘disable_comment_url’); // disable email field function disable_comment_email($fields) { if(isset($fields[’email’])) unset($fields[’email’]); … Read more