Like a function.php code
-
I need to override WooCommerce core function wc_display_item_meta().
I tested my code in functions.php and it works:
function wc_display_item_meta( $item, $args = array() ) {
// etc...
}
I tried to move my code from functions.php to a Woody Snippet but I cannot save it, the error is:
Cannot redeclare wc_display_item_meta() (previously declared in /plugins/woocommerce/includes/wc-template-functions.php:3347)
Any solution?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Like a function.php code’ is closed to new replies.