How to use hook to show WooCommerce price in the grid?
// The filter callback function. function example_callback($data) { foreach ($data['allPosts'] as $key => $value) { $product = wc_get_product($value['ID']); $data['allPosts'][$key]['product_price_html'] = $product->get_price_html(); } return $data; } add_filter('reactivepro_get_grid_all_data', 'example_callback', 10);
Now in the grid template code just use
{{{post.product_price_html}}}