WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a plugin that modifies the contents of some comments. It uses the pre_comment_content filter. It seems to work OK using the standard WP moderation, however, it doesn't when I turn on the IntenseDebate Enhanced Moderation.

Here's some code:

function my_plugin($orig_comment){

  $orig_comment = some_func($orig_comment);

 return $orig_comment;

Edit: Basically the plugin just applies some formatting, let's say lowercase all letters. In the first case it works perfectly, when using IntenseDebate it seems as if my function never gets called.

Any workarounds for this?

share|improve this question
We'll need more information on what your plugin does. Also, what exactly doesn't work? Any error messages or just a blank spot where IntenseDebate comments should be? – john010117 Aug 20 '10 at 1:28
Yeah, let me expand on the details. – Ignacio Aug 20 '10 at 1:56

You write "it seems as if my function never gets called". I would at first verify if that's the case or not, e.g. by testing wether or not that is the case (print statements, debugger).

If your hook really is not called any longer than some other plugin might remove your hook. If thats the case, the code that removes the hook must be reverse engineered to create a counter-strategy against that plugins behavior.

It might be the case that your hook is removed by error by the other plugin. If that's the case, please fill a bugreport to the other plugin and/or WordPress.

If you plugin still is called but your output is ignored, it might help to change the priority you hook is using. Additionally sometime an alternative hook is available which still does the job regardless of interference by other plugins.

I know my answer is not very concrete but you did not provide much factual infos to build something on. So this is just for a starter.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.