php - What is wrong with the way I am passing arguments to get_tags()? -


this bit of code has been giving me problem. here's snippet in question:

... strip_tags($product->get_tags(array('order', 'desc'))) ... 

which should produce reverse alphabetical list of tags product, however, entirely different comes on front-end. while get_tags() work without arguments, add argument produces error.

wtf get_tags

following commenter's suggestion of using this:

strip_tags($product->get_tags(array('order' => 'desc'))) 

produces this:

wtf get_tags() freaking out

if talking wc_product class , get_tags() method function definition is:

function get_tags( $sep = ', ', $before = '', $after = '' ) 

it returns list of term links ( in fact, returns get_the_term_list() list ).


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -