Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: How’s the plugin verify First Time Purchase? #18847
    Wilfred Chong
    Participant
    in reply to: How’s the plugin verify First Time Purchase? #18845
    Wilfred Chong
    Participant

    Applied, but it shows the error msg when the voucher is in fact usable.

    in 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.

    in reply to: How’s the plugin verify First Time Purchase? #18839
    Wilfred Chong
    Participant

    Can I have the complete code for this? I tr y to apply it in the Code Snippet

Viewing 4 posts - 1 through 4 (of 4 total)