title: Using a custom class in a Wordpress theme
body: <p>I have a PHP class with methods that I would like to use anywhere I choose on my theme.<br>For instance this class:</p>
  
  <pre><code>&lt;?php
  class MyClass
  {
      const constant = 'constant value';
  
      function showConstant() {
          echo  self::constant . "\n";
      }
  }
  
  
  $class = new MyClass();
  $class-&gt;showConstant();
  
  ?&gt;
  </code></pre>
  
  <p>How would I include such a class in my theme?</p>