I agree with the first issue. I have to change the code as you suggest.
However I don't understand why you need to wait for 'wp_loaded'. 'after_setup_theme' is already fired after functions.php is loaded (and that's the reason why I included this second test).
↧
Chouby on "[Plugin: Polylang] Cannot modify translated taxonomies from theme level"
↧