I’d like this to work just for two categories:
Leatherman Knives
Victorinox Knives
At the moment it only seems to work as all or nothing – at the checkout page whatever is in the basket.
How to do I get it to work only when there is a knife in the basket?
]]>Hi trying to activate this plugin but as soon as it is activated creates lots of warnings and a fatal error.
I have tried disabaling all plugins but this and on standard theme with no plugins activated but still get the following. This appears on all pages at the footer in the front end and in the agechecked settings page in the admin area.
Plugin Settings Error
Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($function) must be a valid callback, function " " not found or invalid function name in C:\.....\wp-admin\includes\template.php:1743 Stack trace: #0 C:\.....\wp-admin\includes\template.php(1701): do_settings_fields() #1 C:\.....\wp-content\plugins\agecheck\agecheck.php(135): do_settings_sections() #2 C:\.....\wp-includes\class-wp-hook.php(303): admin_page_html() #3 C:\.....\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters() #4 C:\.....\wp-includes\plugin.php(470): WP_Hook->do_action() #5 C:\.....\wp-admin\admin.php(259): do_action() #6 {main} thrown in C:\.....\wp-admin\includes\template.php on line 1743
This is the error from the front end
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in C:\.....\wp-content\plugins\agecheck\agecheck.php:735 Stack trace: #0 C:\.....\wp-includes\class-wp-hook.php(305): agechecked_ui() #1 C:\.....\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters() #2 C:\.....\wp-includes\plugin.php(470): WP_Hook->do_action() #3 C:\.....\wp-includes\general-template.php(82): do_action() #4 C:\.....\wp-content\themes\twentytwentyone\page.php(25): get_footer() #5 C:\.....\wp-includes\template-loader.php(106): include('...') #6 C:\.....\wp-blog-header.php(19): require_once('...') #7 C:\.....\index.php(17): require('...') #8 {main} thrown in C:\.....\wp-content\plugins\agecheck\agecheck.php on line 735