true ) ); } public function render_subtab() { $parent = $this->resolve_parent(); if ( $parent && method_exists( $parent, 'get_settings' ) ) { $this->render_template( 'product-requests-display.php', array( 'settings' => $parent->get_settings( true ), ) ); return; } echo AIEO_DMM_UI::notice( esc_html__( 'The Product Requests module is not loaded. Check that AIEO_DMM_Product_Requests is active.', 'ai-eshop-optimizer' ), 'destructive' ); } private function resolve_parent() { if ( ! class_exists( 'AIEO_DMM' ) ) { return null; } $dmm = AIEO_DMM::instance(); if ( ! $dmm || ! method_exists( $dmm, 'get_module' ) ) { return null; } return $dmm->get_module( 'product_requests' ); } }