rtsb_name = esc_html__( 'Product Reviews', 'shopbuilder' ); $this->rtsb_base = 'rtsb-product-reviews'; parent::__construct( $data, $args ); $this->pro_tab = 'style'; } /** * Widget Field * * @return array */ public function widget_fields() { return ReviewsSettings::widget_fields( $this ); } /** * Undocumented function * * @return void */ public function product_page_script() { ?> get_settings_for_display(); $this->theme_support(); $data = [ 'template' => 'elementor/single-product/reviews', 'controllers' => $controllers, ]; if ( $this->is_builder_mode() ) { // Overriding Global. $post = get_post( Fns::get_prepared_product_id() ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $this->product_page_script(); } Fns::load_template( $data['template'], $data ); $this->theme_support( 'render_reset' ); $product = $_product; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $post = $_post; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited } }