controls['info'] = [ 'tab' => 'content', 'type' => 'info', 'content' => $edit_link ? '' . $label . '' : $label, ]; } public function render() { $settings = $this->settings; $product = get_post($this->post_id); if (empty($product) || $product->post_type !== FluentProducts::CPT_NAME) { return $this->render_element_placeholder( [ 'title' => esc_html__('For better preview select content to show.', 'fluent-cart'), 'description' => esc_html__('Go to: Settings > Template Settings > Populate Content', 'fluent-cart'), ] ); } $content = get_post_field('post_content', $this->post_id); if (!$content) { return $this->render_element_placeholder( [ 'title' => esc_html__('Product content is empty.', 'fluent-cart'), ] ); } $content = $this->render_dynamic_data($content); $content = Helpers::parse_editor_content($content); $content = str_replace(']]>', ']]>', $content); echo "
render_attributes( '_root' )}>" . wp_kses_post($content) . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- render_attributes() handles escaping } }