[Plugin: Members] Custom post type and edit_other_posts capabilities
-
Hi,
I use on WordPress Network Custom Post type “CV LISAA” and a specific role “lisaa_members” for these post type (please see code bellow).
On this role, with the plug-in, I add all Cabilities (like in this screenshoot). Everything works well except one thing. Even, if I don’t check the “edit_others_atelierposts”, all the “lisaa_members” can edit other post type.
Is there somebody else have this kind of problem with a solution?
Thanks in advance<?php /* Set up the post types. */ add_action( 'init', 'gncomwp_ateliers_lisaa_labo_register_post_types',0 ); /* Registers post types. */ function gncomwp_ateliers_lisaa_labo_register_post_types() { /* Set up the arguments for the 'ateliers_lisaa_labo' post type. */ $labels_lisaa_labo = array( 'name' => 'CV LISAA', 'singular_name' => 'CV LISAA', 'add_new' => 'Ajouter votre CV', 'add_new_item' => 'Ajouter votre CV', 'edit_item' => 'Editer votre CV', 'new_item' => 'Nouveau CV', 'view_item' => 'Voir le CV', 'search_items' => 'Chercher dans les CV', 'not_found' => 'Aucun CV n\'a été trouvé', 'not_found_in_trash' => 'Aucun CV n\'a été trouvé dans la corbeille' ); $ateliers_lisaa_args = array( 'labels' => $labels_lisaa_labo, 'public' => true, 'show_in_nav_menus' => false, 'query_var' => 'ateliers_lisaa_labo', 'rewrite' => array( 'slug' => 'ateliers-lisaa-labo', 'with_front' => false, ), 'menu_position'=> 25, 'menu_icon'=> get_stylesheet_directory_uri() . '/images/lisaa-labo.png', 'supports' => array( 'title', 'thumbnail', 'author', ), 'capability_type' => 'atelierpost', 'capabilities' => array( 'edit_post' => 'edit_atelierpost', 'edit_posts' => 'edit_atelierposts', 'edit_others_posts' => 'edit_others_atelierposts', 'publish_posts' => 'publish_atelierposts', 'read_post' => 'read_atelierpost', 'read_private_posts' => 'read_atelierposts', 'delete_post' => 'delete_atelierpost', ), 'has_archive' => true ); /* Register the music album post type. */ register_post_type( 'ateliers_lisaa_labo', $ateliers_lisaa_args ); } ?>
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘[Plugin: Members] Custom post type and edit_other_posts capabilities’ is closed to new replies.