removeDashboardFeeds(); $this->removeHeadUris(); } function removeDashboardFeeds() { add_filter('dashboard_primary_feed', array($this, 'returnEmptyString')); add_filter('dashboard_secondary_feed', array($this, 'returnEmptyString')); } function removeHeadUris() { remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'locale_stylesheet'); } function returnEmptyString() { return ''; } } $wordPressCleaner = new RoamWordPressCleaner(); $wordPressCleaner->attach();