wp_widgets_access_body_class() WordPress Function

The wp_widgets_access_body_class() function allows you to add a class to the body element when the user has access to the WordPress admin dashboard. This can be useful for customizing the dashboard interface for your specific needs.

wp_widgets_access_body_class( string $classes ) #


Parameters

$classes

(string)(Required)


Top ↑

Return

(string)


Top ↑

Source

File: wp-admin/includes/widgets.php

function wp_widgets_access_body_class( $classes ) {
	return "$classes widgets_access ";
}

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.