• I’m not sure exactly when this issue started – whether it was a WordPress upgrade or a Media Tags upgrade – but at some time, everyone on the network lost the right to assign terms and every other media tags capability.

    It’s a multisite network, and ideally i’d like to just remove the role management part, and grant all rights to all site administrators, and assign terms to anyone who can upload media.

    Do you have any suggestions for how to do this without hacking your plugin?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter Jason LeMahieu (MadtownLems)

    (@madtownlems)

    function media_tags_modifier_filter_capabilities($allcaps, $cap, $args) {
    //logic
    $allcaps[MEDIATAGS_ASSIGN_TERMS_CAP] = true;
    return $allcaps;
    }
    add_filter(‘user_has_cap’, ‘media_tags_modifier_filter_capabilities’, 5, 3);

    This seems to work as a base to give everyone the ability to assign terms and I can tweak it to do exactly what i want. Let me know if you have a better solution, find this useful, or have another comment. Thanks 😛

Viewing 1 replies (of 1 total)

The topic ‘Permission Issue/Question’ is closed to new replies.