Support » Plugin: User Taxonomies » Fails when taxonomies are registered for array of post types

  • The plugin as written only works on taxonomies registered to one post type. It expects the second parameter $object_type of register_taxonomies() to be a string, but it can also take an array (as shown in the Codex).

    For example, this fails to allow the taxonomy for the user:
    register_taxonomy('visibility',array('pages','users'),$args);

    See http://pastie.org/6464242 for a rewritten DJG_UserTaxonomies::registered_taxonomy method to allow the plugin to handle taxonomies for multiple post types.

    http://wordpress.org/extend/plugins/user-taxonomies/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fails when taxonomies are registered for array of post types’ is closed to new replies.