Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › How’s the plugin verify First Time Purchase? › Reply To: How’s the plugin verify First Time Purchase?

#18841
Wilfred Chong
Participant

When I insert the code and click save, it shows this error:

Don’t Panic
The code snippet you are trying to save produced a fatal error on line 1:

Uncaught Error: Call to undefined function add_filters() in /wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(221) : eval()’d code:1 Stack trace:
#0 /wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(221): eval() /wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(271): Code_Snippets_Edit_Menu->test_code(Object(Code_Snippet))
#2 /wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(130): Code_Snippets_Edit_Menu->save_posted_snippet()
#3 /wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(107): Code_Snippets_Edit_Menu->process_actions() #
4 /wp-includes/class-wp-hook.php(307): Code_Snippets_Edit_Menu->load(
The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.

Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.