wpsnoop Fatal error: Cannot redeclare remove_admin_bar()

If you are dealing with a WordPress issue where a PHP Function remove_admin_bar() 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 7 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 7 different instances of potential conflicts where different plugins or themes share the function name.

Examples of this error include:

PHP Fatal error: Cannot redeclare remove_admin_bar() (previously declared in wp-content/plugins/simple-account-system/simple-account-system.php:1164)

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

PHP Fatal error: Cannot redeclare remove_admin_bar() (previously declared in wp-content/plugins/cardojo-lite/includes/cardojo-core-functions.php:3163)

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

PHP Fatal error: Cannot redeclare remove_admin_bar() (previously declared in wp-content/plugins/kodeks-dashboard/functions.php:334)

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

PHP Fatal error: Cannot redeclare remove_admin_bar() (previously declared in wp-content/plugins/change-login-screen-to-your-choice/change-screen.php:75)

This file is part of the WordPress plugin change login screen to your text and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare remove_admin_bar() (previously declared in wp-content/plugins/hidewpbar/HideWPBar.php:14)

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

PHP Fatal error: Cannot redeclare remove_admin_bar() (previously declared in wp-content/plugins/kamerpower-wp-custom-login-registration/kamerpower-registration-login.php:338)

This file is part of the WordPress plugin Kamerpower WP Custom Login & Registration Form and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare remove_admin_bar() (previously declared in wp-content/plugins/ag-core-developers-and-designers/ag-core.php:117)

This file is part of the WordPress plugin AG Design Studio Core 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.