add_cssclass

Advertisement

Syntax Syntax

add_cssclass( string $add, string $class )

Parameters Parameters

$add

(string) (Required)

$class

(string) (Required)

Return Return

(string)

Source Source

File: wp-admin/includes/menu.php

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.