writing a plugin, how to disable the comment form altogether?

You can control whether comments appear by filtering the comments_open() function. Here is an example from the WordPress codex: add_filter( ‘comments_open’, ‘my_comments_open’, 10, 2 ); function my_comments_open( $open, $post_id ) { $post = get_post( $post_id ); if ( ‘page’ == $post->post_type ) $open = false; return $open; }

Image Upload Form is Disabling Comment Addition

Well, this is definitely a little hackish but what I ended up doing was changing the action on the form to “[mysite url]/wp-comments-post.php”. Then I took advantage of a few action hooks in wp-comments-post.php to hijack that page: add_action(‘pre_comment_on_post’, array($this, ‘process_image_upload’)); And if anyone is curious as to how I wrote the process_image_upload function (which … Read more

Why might a comment turn red on approval?

Got it figured, so I’m closing this question out. Here was the problem: on comment approval, I had some custom stuff hooked, and this custom stuff was throwing an error. This error was being included as part of the comment approval’s AJAX response. It turs out that on listings pages in the admin, if WordPress … Read more

Migrate comments to Disqus

During the process of installing the Disqus Comment System plugin on WordPress, it actually allows you to export your comments to Disqus, as shown in the screenshot above. And they’ve quite a helpful documentation as well: Install Disqus on WordPress (self-hosted) Exporting comments from WordPress to Disqus Not to mention the numerous ‘how-to’ videos on … Read more

Email from new comments

Have you tried: deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). switching to the Twenty Eleven theme to rule out any theme-specific problems. resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still … Read more

Let users comment on categories in WordPress

For all I know, that’s not possible, since comments depend on a Post ID to exist. You can, however, mimic that functionality by registering a post_type to be at the same time, attached to one specific category, and parent their comments. Then you can insert a secondary query on your comments.php to fetch the post_type … Read more

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