Created
June 16, 2017 20:12
-
-
Save Perun/eec7255e14d46730e0072147bee7abab to your computer and use it in GitHub Desktop.
Mit dem folgenden Code in der functions.php kann man den den Kurzlink-Button in WordPress wieder zurückholen. Siehe https://www.perun.net/2015/12/14/wordpress-4-4-kurzlink-button-zurueckholen/ bzw. https://www.perun.net/?p=8215
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
// Kurzlink in WP zurückholen | |
if ( function_exists( 'add_filter' ) ) { | |
add_filter( 'get_shortlink', function ( $shortlink ) { | |
return $shortlink; | |
} ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment