How to remove email id & website box in wordpress comment

You can do by adding few lines of code in functions.php or using Disable Comment plugin. But adding few lines of code would be great. Steps: Go to Editor > Open functions.php file. Scroll down to the end of file and add lines of code given below function comments_custom_settings($fields) { unset($fields[‘url’]); unset($fields[’email’]); return $fields; } … Read more

comment awaiting moderation

No plug-in needed for this. Just open your theme files using the WordPress theme editor or via FTP. Look for the code that is being used to display the notice. It should be in the index.php file, maybe in a content.php file if your theme uses that, and in some cases it’s in your functions.php … Read more

Query comments with non-empty ‘author_url’ value on Admin Comments Screen

We can set the author_url argument of WP_Comment_Query as null (empty string will not work) to search for comments that don’t have an author url. Currently (ver 4.8.1) the has_author_url isn’t supported. Using a sub-query to exclude those comments, with no author_url, using comment__not_in, should work, but wouldn’t probably scale well. Setting fields as ids … Read more

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

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