WordPress Snippets at WPcustoms

Add welcome message to wp-login

This function inserts custom html below the logo on your wp-admin\ wp-login.php site. Add any html codes your project requires.


/**
 * Snippet Name: Add welcome message to wp-login
 * Snippet URL: http://www.wpcustoms.net/snippets/add-welcome-message-wp-login/
 */
 function wpc_login_message( $message ) {
if ( empty($message) ){
    return "

Welcome to this site. Please log in to continue

"; } else { return $message; } } add_filter( 'login_message', 'wpc_login_message' );