Filters the login page body classes.
Parameters
$classes
string[]- An array of body classes.
$action
string- The action that brought the visitor to the login page.
Source
$classes = apply_filters( 'login_body_class', $classes, $action );
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |
Example migrated from Codex:
Adds the
.my-login-class
body class to the login screen: