title: How to add a custom HTML class name to admin screen submenu items?
body: <p>Here are these submenu items under the <strong>Posts</strong> menu</p>
  
  <p><a href="https://i.stack.imgur.com/Fr1v9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Fr1v9.png" alt="enter image description here"></a></p>
  
  <p>I inspected the code and found out that the markup of it is this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="wp-submenu wp-submenu-wrap"&gt;
    &lt;li class="wp-submenu-head" aria-hidden="true"&gt;Posts&lt;/li&gt;
    &lt;li class="wp-first-item current"&gt;&lt;a href="edit.php" class="wp-first-item current"&gt;All Posts&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="post-new.php"&gt;Add New&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="edit-tags.php?taxonomy=category"&gt;Categories&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="edit-tags.php?taxonomy=post_tag"&gt;Tags&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What I would want to do is add a custom class <code>my-custom-class</code> on the <code>&lt;li&gt;</code> tags (processed on the server-side) such that it would become like this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="wp-submenu wp-submenu-wrap"&gt;
    &lt;li class="wp-submenu-head" aria-hidden="true"&gt;Posts&lt;/li&gt;
    &lt;li class="wp-first-item current my-custom-class"&gt;&lt;a href="edit.php" class="wp-first-item current"&gt;All Posts&lt;/a&gt;&lt;/li&gt;
    &lt;li class="my-custom-class"&gt;&lt;a href="post-new.php"&gt;Add New&lt;/a&gt;&lt;/li&gt;
    &lt;li class="my-custom-class"&gt;&lt;a href="edit-tags.php?taxonomy=category"&gt;Categories&lt;/a&gt;&lt;/li&gt;
    &lt;li class="my-custom-class"&gt;&lt;a href="edit-tags.php?taxonomy=post_tag"&gt;Tags&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is there a way to add a custom HTML class name to admin screen submenu items?</p>