Created
August 10, 2014 12:38
-
-
Save KeSch/e26fe7fe83e08cdccef5 to your computer and use it in GitHub Desktop.
Toolbox-Modul um nicht benötigte Links aus dem WordPress-Header zu entfernen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Module Name: WordPress-Header aufräumen | |
Description: Entfernt nicht benötigte Links aus dem WordPress-Header. [Frontend] | |
Author: Kevin Schludermann | |
Author URI: http://kevinschludermann.com | |
*/ | |
/* Sicherheitsabfrage */ | |
if ( !class_exists('Toolbox') ) { | |
die(); | |
} | |
/* EditURI-Link entfernen (wird von div. Blog-Clients genutzt) */ | |
remove_action( 'wp_head', 'rsd_link' ); | |
/* wlmanifest-Link entfernen (wird vom Windows Live Writer verwendet) */ | |
remove_action( 'wp_head', 'wlwmanifest_link' ); | |
/* shortlink entfernen (wie z.B. "http://example.com/?p=41") */ | |
remove_action( 'wp_head', 'wp_shortlink_wp_head' ); | |
/* WordPress Generator inkl. Versionsnummer entfernen */ | |
remove_action( 'wp_head', 'wp_generator' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment