title: Function arguments in add_action() to init
body: <p>I am looking to pass arguments in my function to <code>add_action()</code>, but apparently I need to do this through do_action. My problem is the add_action tag is '<code>init</code>', which I think will cause issues if I run it again/prematurely. Any ideas?</p>
  
  <pre><code>function taxonomy_equipment( ) {
      $name = "Equipment";
      $labels = array(
          'name'              =&gt; _x( $name, 'taxonomy general name' ),
          'singular_name'     =&gt; _x( $name, 'taxonomy singular name' ),
      );
      $args = array(
          'labels' =&gt; $labels,
          'hierarchical' =&gt; true,
      );
      register_taxonomy( str_replace(' ', '', strtolower($name)), 'exercise', $args );
  }
  add_action( 'init', 'taxonomy_equipment', 0 );
  </code></pre>
  
  <p>I want to pass <code>$name</code> as an argument.</p>