Skip to content

Commit ab2adbb

Browse files
author
Tom Hanoldt
committed
add helper
1 parent 7684e4c commit ab2adbb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

woocommerce/Helper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ public static function setHomeBreadcrumb($name, $url){
1414
}, 11, 1);
1515
}
1616

17+
public static function addCodeToSingleProductInfo($code) {
18+
add_action( 'woocommerce_single_product_summary', function() use($code){
19+
echo $code;
20+
}, 40 );
21+
}
1722
}

0 commit comments

Comments
 (0)