sitepress = $sitepress; } public function add_hooks() { add_action( 'admin_enqueue_scripts', [ $this, 'disableLanguageQuickLinks' ], self::AFTER_SITEPRESS_JS_LOAD ); } public function disableLanguageQuickLinks() { /* phpcs:ignore WordPress.Security.NonceVerification.Recommended */ $getData = wpml_collect( $_GET ); if ( 'product' === $getData->get( 'post_type' ) && 'product-reviews' === $getData->get( 'page' ) ) { remove_action( 'admin_enqueue_scripts', [ $this->sitepress, 'language_filter' ] ); } } }