cat_name : ''); $currency = function_exists('get_woocommerce_currency') ? get_woocommerce_currency() : ''; $product_value = function_exists('wc_get_product') ? wc_get_product()->get_price() : ''; $pixel_params = array( 'content_name' => get_the_title(), 'content_category' => $content_category, 'content_ids' => get_the_ID(), 'content_type' => get_post_type(), 'currency' => $currency, 'value' => $product_value, ); ?> '; echo ''; echo ''; echo ''; if (has_post_thumbnail($post->ID)) { echo ''; } } } add_action('wp_head', 'afp_add_opengraph_meta');