login_body_class filter-hookWP 3.5.0

Filters the login page body classes.

Usage

add_filter( 'login_body_class', 'wp_kama_login_body_class_filter', 10, 2 );

/**
 * Function for `login_body_class` filter-hook.
 * 
 * @param string[] $classes An array of body classes.
 * @param string   $action  The action that brought the visitor to the login page.
 *
 * @return string[]
 */
function wp_kama_login_body_class_filter( $classes, $action ){

	// filter...
	return $classes;
}
$classes(string[])
An array of body classes.
$action(string)
The action that brought the visitor to the login page.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

login_header()
login_body_class
wp-login.php 191
$classes = apply_filters( 'login_body_class', $classes, $action );

Where the hook is used in WordPress

Usage not found.