apply_filters( 'login_body_class', string[] $classes , string $action )
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
File: wp-login.php
.
View all references
$classes = apply_filters( 'login_body_class', $classes, $action );
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
Adds the
.my-login-class
body class to the login screen: