I created a custom field cat_price and writing it to WC through
update_woocommerce_term_meta( $term_id, 'cat_price', esc_attr( $_POST['cat_price'] ) );
How I can add this field value to category meta title and description?
After adding %customfield(cat_price)% to meta input I got a js error in console:
Uncaught TypeError: Cannot use 'in' operator to search for 'cat_price' in undefined
and zero output in frontend.
The ticket ‘custom field in woocommerce category meta’ is closed to new replies.