wpsnoop Fatal error: Cannot redeclare custom_comment()

If you are dealing with a WordPress issue where a PHP Function custom_comment() was already declared it is most likely due to a plugin/theme conflict.

wpsnoop scanned and analyzed over 100,000 WordPress plugins and themes to find and locate potential conflicts including functions that share the same name.

This page has information on the 11 places where that function is declared and used in WordPress plugins and themes.

Note: Our database currently only taps into the free themes and plugins available in the publicly available WordPress plugins and themes, if your site uses paid plugins, themes or custom code there may be additional conflicts.


Our database has uncovered 11 different instances of potential conflicts where different plugins or themes share the function name.

Examples of this error include:

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/garland-revisited/functions.php:19)

This file is part of the WordPress theme Garland-revisited and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/zenpro/functions.php:52)

This file is part of the WordPress theme ZenPro and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/gchrome/functions.php:80)

This file is part of the WordPress theme GChrome and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/ahimsa/functions.php:1020)

This file is part of the WordPress theme Ahimsa and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/red-delicious/functions.php:2)

This file is part of the WordPress theme Red Delicious and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/pink-tulip/functions.php:2)

This file is part of the WordPress theme Pink Tulip and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/food-recipe/functions.php:34)

This file is part of the WordPress theme Food Recipe and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/christmas-is-near/functions.php:2)

This file is part of the WordPress theme Christmas Is Near and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/vista-like/functions.php:2)

This file is part of the WordPress theme Vista-Like and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/idiandong/functions.php:23)

This file is part of the WordPress theme idiandong and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare custom_comment() (previously declared in wp-content/themes/one/functions.php:12)

This file is part of the WordPress theme One and could be interacting with another theme or plugin and causing a fatal error.

The error occurs because two (or more) plugins that you are using are both trying to declare a function with the same name.