| @@ -379,9 +379,9 @@ | ||
| 379 | 379 | 'categories' => $this->get_categories(), |
| 380 | 380 | 'html_wrapper_class' => $this->get_html_wrapper_class(), |
| 381 | 381 | 'show_in_panel' => $this->show_in_panel(), |
| 382 | 382 | 'hide_on_search' => $this->hide_on_search(), |
| 383 | - 'upsale_data' => $this->get_upsale_data(), | |
| 383 | + 'upsale_data' => Plugin::$instance->experiments->is_feature_active( 'e_panel_promotions' ) ? null : $this->get_upsale_data(), | |
| 384 | 384 | 'is_dynamic_content' => $this->is_dynamic_content(), |
| 385 | 385 | 'has_widget_inner_wrapper' => $this->has_widget_inner_wrapper(), |
| 386 | 386 | ]; |
| 387 | 387 | |
| @@ -694,8 +694,16 @@ | ||
| 694 | 694 | * @access public |
| 695 | 695 | */ |
| 696 | 696 | public function render_plain_content() { |
| 697 | 697 | $this->render_content(); |
| 698 | + } | |
| 699 | + | |
| 700 | + public function render_markdown(): string { | |
| 701 | + ob_start(); | |
| 702 | + $this->render_content(); | |
| 703 | + $html = ob_get_clean(); | |
| 704 | + | |
| 705 | + return wp_strip_all_tags( $html ); | |
| 698 | 706 | } |
| 699 | 707 | |
| 700 | 708 | /** |
| 701 | 709 | * Before widget rendering. |