WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Filter Reference/login body class

Description

The login body class filter allows body classes to be added to the login screen which is output via login_header().

Parameters

$classes
(array) (required) Existing body classes to be filtered.
Default: None

Examples

The following example of this hook adds the .my-login-class body class to the login screen:

function login_classes( $classes ) {
	$classes[] = 'my-login-class';
	return $classes;
}
add_filter( 'login_body_class', 'login_classes' );

Source File

login_body_class is located in wp-login.php.

Change Log

Related

login_headerurl, login_headertitle, login_message

See Also

Plugin_API/Filter_Reference