Why does admin_body_class not work?

This works for the admin backend; I needed to restructure the filter to be able to add a priority: function add_admin_body_class($classes) { $user = wp_get_current_user(); foreach ($user->roles as $user_role) { $classes .= ” role-{$user_role}”; } return $classes; } add_filter(“admin_body_class”, “add_admin_body_class”, 9999);

How can i filter wordpress users by custom feild?

You can make use of the meta_key and meta_value query arguments. $args = [ ‘role’ => ‘author’, ‘number’ => -1, ‘meta_key’ => ‘yourprefix_location’, ‘meta_value’ => ‘somevalue’ ]; Source: https://developer.wordpress.org/reference/classes/wp_user_query/#custom-field-parameters

How do I add tags to entire comments, not just their text

Currently your comment markup looks similar to the following: <li class=”comment byuser comment-author-rcotwunite odd alt thread-odd thread-alt depth-1″ id=”comment-7902″> <div id=”div-comment-7902″ class=”comment-body”> <div class=”comment-author vcard”><!– … –></div> <div class=”comment-meta commentmetadata”><!– … –></div> <div class=”filterDiv SELL show”> <div class=”container”> <p class=”wantosec”>I want to SELL</p> <p>SUP YALL im here to sell some stuff</p> <div class=”reply”><!– … –></div> … Read more