Skip to content

Commit

Permalink
added woocommerce error detail
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewalker24 authored and mikewalker24 committed Jul 12, 2018
1 parent 758c6db commit 280aa18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/woocommerce.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function timber_set_product( $post ) {
}
```

Without this, some elements of the listed products would show the same information as the first product in the loop.
Without this, some elements of the listed products would show the same information as the first product in the loop. If you see an error like `Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given`, this is your problem.

*Note:* Some users reported issues with the loop context even when using the `timber_set_product()` helper function. Turns out the default WooCommerce hooks interfere with the output of the aforementioned function.

Expand Down

0 comments on commit 280aa18

Please sign in to comment.