title: How to filter taxonomy args with register_taxonomy_args WordPress
body: <p>I am trying to filter the taxonomy args on a selection of custom taxonomies with the <strong>register_taxonomy_args</strong> filter hook. However when doing so I am getting quite a lot of error messages.</p>
  
  <p><strong>To list a few:</strong></p>
  
  <p>Warning: Missing argument 2 for edit_bb_taxonomy_args() in /Applications/MAMP/htdocs/broadbean/wp-content/themes/scratch/functions.php on line 278</p>
  
  <p>Warning: Missing argument 3 for edit_bb_taxonomy_args() in /Applications/MAMP/htdocs/broadbean/wp-content/themes/scratch/functions.php on line 278</p>
  
  <p>Notice: Undefined variable: taxonomy in /Applications/MAMP/htdocs/broadbean/wp-content/themes/scratch/functions.php on line 280</p>
  
  <p>Warning: array_merge(): Argument #2 is not an array in /Applications/MAMP/htdocs/broadbean/wp-includes/taxonomy.php on line 379</p>
  
  <p>Notice: Undefined index: rewrite in /Applications/MAMP/htdocs/broadbean/wp-includes/taxonomy.php on line 398</p>
  
  <p><strong>My filter function</strong></p>
  
  <pre><code>&lt;?php
  function edit_bb_taxonomy_args( $args, $taxonomy, $object_type ) {
  
      $taxonomies = array( 'wpbb_job_type', 'wpbb_job_location', 'wpbb_job_industry', 'wpbb_job_skill' );
  
      if ( in_array( $taxonomy, $taxonomies ) ) {
          $args = array(
              'with_front' =&gt; false
          );
          return $args;
      }
  }
  add_filter('register_taxonomy_args', 'edit_bb_taxonomy_args' );
  ?&gt;
  </code></pre>
  
  <p>What am I doing wrong? Thanks.</p>