get_parent_id(); if ( ! empty( $parent_product_id ) ) { $product = wc_get_product( $parent_product_id ); } return $product->get_reviews_allowed(); } ); } if ( empty( $reviewable_products ) ) { return; } add_action( 'bwfan_output_email_style', function () { $button_background_color = apply_filters( 'bwfan_wc_email_get_base_color', get_option( 'woocommerce_email_base_color' ) ); $button_text_color = BWFAN_Common::color_light_or_dark( $button_background_color, '#202020', '#ffffff' ); $button_text_color = apply_filters( 'bwfan_wc_email_get_text_color', $button_text_color ); ?> .bwfan-email-review-rows .bwfan-product-rows { width: 100%; border: 2px solid #e5e5e5; border-collapse: collapse; max-width:700px; } #body_content .bwfan-email-review-rows .bwfan-product-rows td { padding: 10px 12px; } .bwfan-email-review-rows .autonami-button { background-color: ; color: ; } order instanceof WC_Order ? $this->order : null; ?>
get_parent_id(); $review_link = $product->get_permalink(); if ( ! empty( $parent_product_id ) ) { $parent_product = wc_get_product( $parent_product_id ); $review_link = $parent_product->get_permalink(); } $review_link = apply_filters( 'bwfan_product_review_link', $review_link . $review_hash_path, $product, $order ); ?>