title: Adding php parameters
body: <p>So, here is original function which does not have any parameters (wordpress)</p>
  
  <pre><code>public static function getCurrent() {
      $post = get_post();
      $profiles = new MY_images($post-&gt;ID);
      return $profiles;
  }
  </code></pre>
  
  <p>which is used in the following variable:</p>
  
  <pre><code>$my_site_images = MY_images::getCurrent();
  </code></pre>
  
  <p>So, it gets the <code>$post-&gt;ID</code> from the <code>getCurrent()</code></p>
  
  <p>Now, I want to customize it so that I can add any <code>id</code> in it or leave it empty for default function such as following:</p>
  
  <pre><code>$my_site_images = MY_images::getCurrent(343);  (where the "post id" is 343)
  </code></pre>
  
  <p>What modification do I need to make to the original function in order for me to add any ID in it??</p>
  
  <p>Thanks bunch!</p>