This bit of code has been giving me a problem. Here’s the snippet in question:
... strip_tags($product->get_tags(array('order', 'DESC'))) ...
Which should produce a reverse alphabetical list of tags from the product, however, something entirely different comes up on the front-end. While get_tags() does work without arguments, as soon as I add any argument it produces this error.
Following a commenter’s suggestion of using this:
strip_tags($product->get_tags(array('order' => 'DESC')))
Produces this:
If you are talking about
WC_Product
class andget_tags()
method then function definition is:It returns list of term links ( in fact, just returns get_the_term_list() list ).