title: How to Include "onclick" Object in WordPress HTML
body: <p>I'm using attempting to add an "onclick" object to a page in a singlesite (i.e. rather than multisite) WordPress that triggers an event.  The code is:</p>
  
  <pre><code>&lt;a href="#" onclick="_speakpipe_open_widget(); return false;"&gt;Send a voice message&lt;/a&gt;
  </code></pre>
  
  <p>When attempting to save the code, WordPress strips the onclick object leaving:</p>
  
  <pre><code>&lt;a href="#"&gt;Send a voice message&lt;/a&gt;
  </code></pre>
  
  <p>A user on another forum <a href="https://wordpress.org/support/topic/2-administrator-users-visual-editor-strips-onclick-on-1-of-them" rel="nofollow">suggested</a> that this restriction should only apply to multisite non-superadmin users.  Again, this is a siglesite with only one admin user.</p>
  
  <p>It is understood that WordPress removes "onclick" from HTML to prevent malicious code.  Still, does anyone know how to resolve this?</p>
  
  <p>Thanks.</p>