W3cubDocs

/WordPress

add_cssclass( string $add, string $class )

Description

Parameters

$add

(string) (Required)

$class

(string) (Required)

Return

(string)

Source

File: wp-admin/includes/menu.php

function add_cssclass( $add, $class ) {
	$class = empty( $class ) ? $add : $class .= ' ' . $add;
	return $class;
}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/add_cssclass