title: Wordpress - Pass function arguments when adding menu page
body: <p>In WordPress I'm adding a new menu page like this:</p>
  <pre><code> add_menu_page(
        'Page Name',
        'Page Name',
        'manage_options',
        'page-name',
        array($this, 'page_function')
   );
  </code></pre>
  <p>However, I want to pass some arguments when running the function page_function. Ideally, it would be something like this (but doesn't work):</p>
  <pre><code> add_menu_page(
        'Page Name',
        'Page Name',
        'manage_options',
        'page-name',
        array($this, 'page_function(&quot;arg1&quot;, &quot;arg2&quot;)')
   );
  </code></pre>
  <p>How do I do this?</p>