Astra_Addon_Theme_Builder::admin_body_class( string $classes = '' )
Admin Body Classes
Description
Parameters
- $classes
-
(string) (Optional) Space separated class string.
Default value: ''
Return
(void)
Source
File: addons/advanced-hooks/classes/class-astra-addon-theme-builder.php
public function admin_body_class( $classes = '' ) { $theme_builder_class = isset( $_GET['page'] ) && 'theme-builder' === $_GET['page'] ? 'ast-theme-builder' : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Fetching a $_GET value, no nonce available to validate. $classes .= ' ' . $theme_builder_class . ' '; return $classes; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |