• Resolved jasonb4u2

    (@jasonb4u2)


    Hi,

    Just wondering if you’d be kind enough to help me understand where and how to stop a user role from deleting taxonomies ?

    I tried this: https://prntscr.com/kdl47o but didnt work

    There are approximately 3500 Tax I want to stop from being deleted from other user roles, how to do this simple ?

    Cheers

    • This topic was modified 6 years, 3 months ago by jasonb4u2.
    • This topic was modified 6 years, 3 months ago by jasonb4u2.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AAM Plugin

    (@vasyltech)

    Hi @jasonb4u2,

    Sure, I can help you with that. So the “wpcf_custom_taxonomy_delete” is not a standard WordPress capability so this will not make any difference for you.

    There are two way you can go here. The first way is to uncheck “manage_categories” capability. However your user will not longer be able to create new categories or any custom hierarchical taxonomies.

    The second way is to get Plus Package extension and you can literally specify which taxonomies you do not want your user to delete or even restrict ability to delete all taxonomies for any post type.

    Feel free to ask more questions.

    Regards,
    Vasyl

    Thread Starter jasonb4u2

    (@jasonb4u2)

    Hi,

    If I buy PLUS, does that mean I have to manually check 3000 boxes of tax, or does it allow me to select that specific main tax that will auto checkbox the rest of them ?

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @jasonb4u2,

    Good question however before I answer it, let me clarify the terminology that is used here so we can be on the same page.

    So taxonomy is a type of terms or as official WordPress Codex states:

    basically, a taxonomy is a way to group things together.

    You do not manage access to taxonomies, it is simply not possible. You manage access to terms of specific taxonomy. For example, post categories are category taxonomy and you can create category terms on wp-admin/edit-tags.php?taxonomy=category page.

    To make your head spinning a bit more, each taxonomy has to belong to specific post type. For example category taxonomy belongs to post post type.

    With AAM you can set default access to all your terms of any specific taxonomy or you can manage access to any individual term. AAM also takes in consideration hierarchical nature of terms and inherits settings from parent terms. For example if Term B has parent Term A, then if you do not explicitly define settings for Term B, they’ll be inherited from Term A.

    In you case you can set default access settings to all terms and all your terms will inherit settings from default so you do not have to set access settings 3000 times.

    I’ve started the Youtube channel where uploaded long time ago few videos. They are not perfect however I’ve just got new equipment and will work on better quality video tutorials.

    Keep me updated. If necessary, I can help you to setup access.

    Regards,
    Vasyl

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to stop deletion of Taxonomies’ is closed to new replies.