wpsnoop: fix Ads Code plugin conflicts, errors & issues

When the plugin Ads Code 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 Ads Code, plus learn which plugins and/or themes could be in conflict with Ads Code.


Troubleshooting theme and plugin conflicts is easier when you know what Ads Code 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 Ads Code

Get professional support for Ads Code here

When you need professional help with WordPress: get help here


What does Ads Code version 1.2 add to WordPress? Answers Here.

This is an automatically generated report - it is possible for Ads Code to perform differently in your installation, previous versions before 1.2 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.2 of Ads Code behaves when installed and removed on a clean installation of WordPress.

We have not tested individual shortcodes, features or settings of this plugin 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 Ads Code by clicking here.

Our testing covered the free version of this plugin 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 Ads Code add to WordPress?

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

Type & Path Size Conflicts
ads.txt 58.00B The ads.txt file has potential conflicts with at least 6 other plugins or themes.
wp-content/plugins/photoboxone-adsense-code/ 27.65kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/assets/ 5.08kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/assets/admin.css 1.50kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/assets/admin.js 501.00B No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/assets/code.js 3.03kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/assets/index.html 55.00B No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/includes/ 19.47kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/includes/config.php 421.00B No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/includes/functions.php 7.78kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/includes/index.html 26.00B No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/includes/setting.php 3.60kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/includes/site.php 2.61kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/includes/widget.php 5.04kB No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/index.html 49.00B No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/index.php 584.00B No known conflicts with other themes or plugins.
wp-content/plugins/photoboxone-adsense-code/readme.txt 2.48kB No known conflicts with other themes or plugins.

Which new shortcodes does Ads Code add to WordPress?

Which new database tables are created by the WordPress plugin Ads Code?

Which new options are added to the wp-options table by Ads Code?

Option Name   Known Conflicts
widget_widget_adsense_code The widget_widget_adsense_code option doesn't have any known conflicts with other themes or plugins.

During use Ads Code may or may not create more options depending on how the plugin is configured and depending on which other themes and plugins are active in your specific hosting environment.

What new PHP functions does Ads Code declare when it is active?

Function   Conflicts Common Errors
adsense_code_action_update_option 0 conflicts Fatal error: Cannot redeclare adsense_code_action_update_option()
adsense_code_add_options_page 0 conflicts Fatal error: Cannot redeclare adsense_code_add_options_page()
adsense_code_assets_url 0 conflicts Fatal error: Cannot redeclare adsense_code_assets_url()
adsense_code_enqueue_scripts 0 conflicts Fatal error: Cannot redeclare adsense_code_enqueue_scripts()
adsense_code_get_example 0 conflicts Fatal error: Cannot redeclare adsense_code_get_example()
adsense_code_get_ids 0 conflicts Fatal error: Cannot redeclare adsense_code_get_ids()
adsense_code_get_token 0 conflicts Fatal error: Cannot redeclare adsense_code_get_token()
adsense_code_head 0 conflicts Fatal error: Cannot redeclare adsense_code_head()
adsense_code_include 0 conflicts Fatal error: Cannot redeclare adsense_code_include()
adsense_code_index 0 conflicts Fatal error: Cannot redeclare adsense_code_index()
adsense_code_install 0 conflicts Fatal error: Cannot redeclare adsense_code_install()
adsense_code_options 0 conflicts Fatal error: Cannot redeclare adsense_code_options()
adsense_code_path 0 conflicts Fatal error: Cannot redeclare adsense_code_path()
adsense_code_upgrader_process_complete 0 conflicts Fatal error: Cannot redeclare adsense_code_upgrader_process_complete()
adsense_code_url 0 conflicts Fatal error: Cannot redeclare adsense_code_url()
adsense_code_ver 0 conflicts Fatal error: Cannot redeclare adsense_code_ver()
adsense_code_wp 0 conflicts Fatal error: Cannot redeclare adsense_code_wp()
adsense_code_wp_assets_url 0 conflicts Fatal error: Cannot redeclare adsense_code_wp_assets_url()
adsense_code_wp_check_html 0 conflicts Fatal error: Cannot redeclare adsense_code_wp_check_html()
adsense_code_wp_footer 0 conflicts Fatal error: Cannot redeclare adsense_code_wp_footer()
adsense_code_wp_loaded 0 conflicts Fatal error: Cannot redeclare adsense_code_wp_loaded()
adsense_code_write_ads_txt 0 conflicts Fatal error: Cannot redeclare adsense_code_write_ads_txt()

Using Ads Code 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 Ads Code from the command line with WP-CLI

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

wp plugin install photoboxone-adsense-code


How to activate Ads Code from the command line with WP-CLI

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

wp plugin install photoboxone-adsense-code --activate


How to reinstall Ads Code from the command line with WP-CLI

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

wp plugin install photoboxone-adsense-code --force


How to update Ads Code to the latest version from the command line with WP-CLI

wp plugin update photoboxone-adsense-code


How to delete Ads Code from the command line with WP-CLI

wp plugin delete photoboxone-adsense-code

Where can you download earlier versions of Ads Code?

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 Ads Code 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 Ads Code

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 Ads Code. Different versions of WordPress could implement the features of this plugin in slightly different ways as well.