logo logo
Время чтения: [rt_reading_time] мин. 3 March 2018 в 19:14 Web Development
Звёзд: 1Звёзд: 2Звёзд: 3Звёзд: 4Звёзд: 5
Loading...

Add User ID in body class WordPress

WordPress has this nifty little “body_class()” function that I use every now and then to add css classes to the html “body” tag.

Today I wanted to add the current user’s id to the class, and here’s how I did it:

or you can use second method class=”administrator user-id-1″

 

Смотрите так же: