• Resolved tovoshane

    (@tovoshane)


    I am having a problem overriding the wc-template-hooks.php file in my child theme. My current path is “child theme/woocommerce/includes/wc-template-hooks.php”. I copied a sample of the code needed and added it to functions.php in my child theme. Unfortunately that only duplicated the code I was trying to override.

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

    (@tovoshane)

    Figured it out. It had to do with the hook hierarchy. I added (in child theme functions.php) remove_filter( ‘HOOK NAME’, HOOK HIERARCHY # ); and overrode with add_action(‘HOOK NAME’, NEW HOOK HIERARCHY # );.

Viewing 1 replies (of 1 total)
  • The topic ‘Override woocommerce wc-template-hooks.php in child theme’ is closed to new replies.