• Resolved Jérémy PETERSEN

    (@jerempetersen)


    Hello Hyyan !

    First of all, thanks for this amazing plugin ! It should definitly be OOB in WooCommerce plugin…

    I only got one question : How to remove the filter you add in your “Tax” class (Tax.php file) to the “woocommerce_get_price_suffix” tag ?

    I tried to do the following in my functions.php theme file, without success : remove_filter('woocommerce_get_price_suffix', 'filterPriceSuffix');

    Note : I try to do this because another plugin adds a filter on this and I’d like to keep it, and not the action you do to translate it 🙂

    Thanks in advance !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    Hi,
    thanks for your comment, unfortunately it won’t be OOB any time soon since WordPress doesn’t provide any Polylang equivalent solution out of the box.

    Please note there is no support on the forums, if there is a concrete issue, please report on https://github.com/hyyan/woo-poly-integration/issues

    Having said that I implemented this function on:
    https://github.com/hyyan/woo-poly-integration/issues/104

    There is also a discussion and further links on why not to use remove_filter here:
    https://github.com/hyyan/woo-poly-integration/issues/101

    It’s quite possible that you might be able to get the effect you want by adjusting your filter priorities.

    If after reviewing the discussion you can’t get it working for you, you could open a request on github for an option to be added to Settings\WooPoly to allow this to be turned off. This works better if you also explain the scenario, why it is necessary / important to do, and best of all if you also submit a pull request 🙂

    Thread Starter Jérémy PETERSEN

    (@jerempetersen)

    Hi jonmoore !

    Thanks for your quick reply 🙂

    I read all the topics you gave me, it’s interesting and I understand why decarvalhoaa added a disucussion about this…

    I ended up using the solution with the global variable $wp_filter. It works like a charm !

    And sorry, I didn’t know it wasn’t the place to post support questions. Hope it will help anyway.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove “filterPriceSuffix” in functions.php’ is closed to new replies.