shortcode no work in tab
-
Hello, I created filter for customize product tab description content, but no work function do_shortcode. On web I see only [woocommerce_photo_reviews_form product_id=”‘.$post->ID.'”] Can I help me? Thank you
add_filter( 'woocommerce_product_tabs', 'woo_custom_description_tab', 98 ); function woo_custom_description_tab( $tabs ) { $tabs['description']['callback'] = 'woo_custom_description_tab_content'; // Custom description callback return $tabs; } function woo_custom_description_tab_content() { global $post; $text .= get_the_content(); $text .= do_shortcode('[woocommerce_photo_reviews_form product_id="'.$post->ID.'"]'); echo $text; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘shortcode no work in tab’ is closed to new replies.