• Resolved 19ash82

    (@19ash82)


    Hello there,

    Testing your plugin (Currently using code snippets)

    I tried several snippets and they work well, but a simple one doesn’t & gives me the error : Something went wrong.

    It’s the remove Woocommerce message “Item has been added to cart

    I currently use this :

    add_filter( ‘wc_add_to_cart_message_html’, ‘__return_false’ );

    PS: I’ve been using this for months now. Any idea what went wrong ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • karlemilnikka

    (@karlemilnikka)

    It looks like your code line uses instead of '.

    Thread Starter 19ash82

    (@19ash82)

    Hi,

    Just checked : The code uses the ‘

    No idea what happens in FluentSnippets because if I paste it in Code Snippets, it works.

    • This reply was modified 11 months ago by 19ash82.
    Thread Starter 19ash82

    (@19ash82)

    I’m wondering if the ‘__return_false’ function might not be supported here (if that’s possible)

    I have the same issue for other code snippets using this function

    PS: I have added some code in FluentSnippets using add_filter and that works.

    Plugin Author Shahjahan Jewel

    (@techjewel)

    We have updated the plugin to 10.32 and it will work now. Please update and try again. It will also show relevant error message.

    Thread Starter 19ash82

    (@19ash82)

    @techjewel

    I finally updated and tested the same code.

    It’s WP Cerber Security which blocks it (But it does NOT when using Code snippets); this piece of code up there can be found anywhere on the net, it is legit.

    Is there any issue between your plugin & WP Cerber Security ?

    https://ibb.co/WyS0hFX

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Something went wront for simple snippet’ is closed to new replies.