• Resolved Jeckstart

    (@jeckstart)


    I know there is an easy way to override template files, but is there a way to override a function, method of class? If not changing plugin files themselves, then how?

    E.g. get_price_html() from woocommerce\includes\class-wc-product-variable.php

    Did anybody do that?..

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter Jeckstart

    (@jeckstart)

    Sorry I actually managed to do it with filters xD
    my bad

    People on the internet say it isn’t possible at all, btw

Viewing 1 replies (of 1 total)

The topic ‘Overriding A Function’ is closed to new replies.