wpsnoop: fix Twenty Twenty-One theme conflicts, errors & issues

When the theme Twenty Twenty-One conflicts or throws a PHP error we hope wpsnoop can help you to fix the issue quickly.


Discover which shortcodes wp-options PHP functions database tables and files are created by Twenty Twenty-One, plus learn which plugins and/or themes could be in conflict with Twenty Twenty-One.


Troubleshooting theme and plugin conflicts is easier when you know what Twenty Twenty-One leaves behind after uninstalling it from a WordPress installation, there is a list down below for your convenience.

Expert advice is recommended if you are not technically proficient with PHP, MySQL etc. View support options for Twenty Twenty-One

Get professional support for Twenty Twenty-One here

When you need professional help with WordPress: get help here


What does Twenty Twenty-One version 1.5 add to WordPress? Answers Here.

This is an automatically generated report - it is possible for Twenty Twenty-One to perform differently in your installation, previous versions before 1.5 may have created a different set of shortcodes, used different function names or could have created entirely different database tables to store settings and operate. This is not an exhaustive list but shows how version 1.5 of Twenty Twenty-One behaves when installed and removed on a clean installation of WordPress.

We have not tested individual shortcodes, features or settings of this theme but instead have concentrated on the potential for obvious errors and conflicts which can occur, if you need help with the plugin in your local installation you can get WordPress help and support for Twenty Twenty-One by clicking here.

Our testing covered the free version of this theme there may or may not be a paid version or premium version available for purchase that unlocks additional features and could behave in a slightly or very different manner.

Which new files does Twenty Twenty-One add to WordPress?

This section will populate with a table showing an icon, size and filepath.

Which new shortcodes does Twenty Twenty-One add to WordPress?

Which new database tables are created by the WordPress theme Twenty Twenty-One?

Which new options are added to the wp-options table by Twenty Twenty-One?

Option Name   Known Conflicts
current_theme Potential conflict with 8753 plugins or themes
theme_mods_twentytwentytwo Potential conflict with 8767 plugins or themes
theme_switched Potential conflict with 8753 plugins or themes
theme_mods_twentytwentyone The theme_mods_twentytwentyone option doesn't have any known conflicts with other themes or plugins.

During use Twenty Twenty-One may or may not create more options depending on how the theme is configured and depending on which other themes and plugins are active in your specific hosting environment.

What new PHP functions does Twenty Twenty-One declare when it is active?

Function   Conflicts Common Errors
twenty_twenty_one_register_block_styles 1 conflict Fatal error: Cannot redeclare twenty_twenty_one_register_block_styles()
twenty_twenty_one_add_menu_description_args 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_add_menu_description_args()
twenty_twenty_one_add_sub_menu_toggle 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_add_sub_menu_toggle()
twenty_twenty_one_body_classes 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_body_classes()
twenty_twenty_one_can_show_post_thumbnail 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_can_show_post_thumbnail()
twenty_twenty_one_change_calendar_nav_arrows 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_change_calendar_nav_arrows()
twenty_twenty_one_comment_form_defaults 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_comment_form_defaults()
twenty_twenty_one_content_width 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_content_width()
twenty_twenty_one_continue_reading_link 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_continue_reading_link()
twenty_twenty_one_continue_reading_link_excerpt 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_continue_reading_link_excerpt()
twenty_twenty_one_continue_reading_text 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_continue_reading_text()
twenty_twenty_one_entry_meta_footer 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_entry_meta_footer()
twenty_twenty_one_get_attachment_image_attributes 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_get_attachment_image_attributes()
twenty_twenty_one_get_avatar_size 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_get_avatar_size()
twenty_twenty_one_get_icon_svg 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_get_icon_svg()
twenty_twenty_one_get_non_latin_css 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_get_non_latin_css()
twenty_twenty_one_get_social_link_svg 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_get_social_link_svg()
twenty_twenty_one_nav_menu_social_icons 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_nav_menu_social_icons()
twenty_twenty_one_non_latin_languages 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_non_latin_languages()
twenty_twenty_one_password_form 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_password_form()
twenty_twenty_one_pingback_header 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_pingback_header()
twenty_twenty_one_post_classes 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_post_classes()
twenty_twenty_one_post_thumbnail 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_post_thumbnail()
twenty_twenty_one_post_title 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_post_title()
twenty_twenty_one_posted_by 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_posted_by()
twenty_twenty_one_posted_on 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_posted_on()
twenty_twenty_one_print_first_instance_of_block 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_print_first_instance_of_block()
twenty_twenty_one_scripts 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_scripts()
twenty_twenty_one_setup 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_setup()
twenty_twenty_one_skip_link_focus_fix 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_skip_link_focus_fix()
twenty_twenty_one_supports_js 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_supports_js()
twenty_twenty_one_the_posts_navigation 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_the_posts_navigation()
twenty_twenty_one_widgets_init 0 conflicts Fatal error: Cannot redeclare twenty_twenty_one_widgets_init()
twentytwentyone_add_ie_class 0 conflicts Fatal error: Cannot redeclare twentytwentyone_add_ie_class()
twentytwentyone_block_editor_script 0 conflicts Fatal error: Cannot redeclare twentytwentyone_block_editor_script()
twentytwentyone_customize_controls_enqueue_scripts 0 conflicts Fatal error: Cannot redeclare twentytwentyone_customize_controls_enqueue_scripts()
twentytwentyone_customize_preview_init 0 conflicts Fatal error: Cannot redeclare twentytwentyone_customize_preview_init()
twentytwentyone_the_html_classes 0 conflicts Fatal error: Cannot redeclare twentytwentyone_the_html_classes()

Using Twenty Twenty-One from the command line with WP-CLI

The following commands are provided for convenience and should only be used if you understand how WP-CLI works. These commands refer to a single WordPress instance and may need to be modified if you are working with a Multisite installation.


How to install Twenty Twenty-One from the command line with WP-CLI

Navigate to the root of your WordPress installation and type the following command:

wp theme install twentytwentyone


How to activate Twenty Twenty-One from the command line with WP-CLI

To immediately activate Twenty Twenty-One after WP-CLI downloads the latest version you can use the following command:

wp theme install twentytwentyone --activate


How to reinstall Twenty Twenty-One from the command line with WP-CLI

To force a reinstallation of Twenty Twenty-One which overwrites the current plugin without asking for confirmation you can use the following command:

wp theme install twentytwentyone --force


How to update Twenty Twenty-One to the latest version from the command line with WP-CLI

wp theme update twentytwentyone


How to delete Twenty Twenty-One from the command line with WP-CLI

wp theme delete twentytwentyone --force

Where can you download earlier versions of Twenty Twenty-One?

Whenever possible you should use the latest version of plugins and themes, however if you have recently updated and discovered that you need to install an earlier version you may be able to download other versions of Twenty Twenty-One from the WordPress repository by visiting this link.

Please note that installing earlier versions of a theme or plugin is not generally a recommended course of action for most users and could re-introduce security, stability or other issues in Twenty Twenty-One

About our testing enviroment

Tests were conducted using Apache 2.4.29, PHP 7.2 on Ubuntu 18.04, MySQL 5.7.33 and WordPress 5.9

It is very possible that different versions of PHP such as PHP 8.0, PHP 7.4, or PHP 7.3 could behave differently with Twenty Twenty-One. Different versions of WordPress could implement the features of this plugin in slightly different ways as well.