login_body_class WordPress Filter Hook

The login_body_class hook is used to add classes to the body element on the login page. This can be used to customize the login page to match the rest of your site.

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.


Top ↑

Source

File: wp-login.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.