Created
January 31, 2015 23:34
-
-
Save david-binda/94ee5086fe309434436d to your computer and use it in GitHub Desktop.
Vlastní message na registrační stránce bez úpravy wp-login.php
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 | |
/* | |
* následující kód vložte do souboru (libovolného jména) uvnitř adresáře /wp-content/mu-plugins (pokud neexistuje, vytvořte jej) | |
* více o mu-plugins zde: http://codex.wordpress.org/Must_Use_Plugins | |
* Kód bude fungovat i po vložení do functions.php, nicméně toto by, imho, mělo jít do mu-plugins | |
*/ | |
add_filter( 'login_message', function( $message ) { | |
return $message . sprintf( '<p class="message register">%s</p>' , 'Nepište prosím diakritiku' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment