Forum Replies Created
- 
		AuthorPosts
- 
		
			
				
edering ParticipantThanks, that worked! edering ParticipantThanks. Yes, we don’t use “Posts” so we were hiding it so the Users would not get confused and to keep the WordPress menu clean. How can I hide “Posts” from the menu but keep the function for searching Pages? edering ParticipantThanks, I just sent the email edering ParticipantNo, I am using Admin Menu Access with Block Selected. edering Participantthanks edering ParticipantThanks! “tab” URL paramenters? Does that mean I could control which of these “tabs” the Role can see? https://www.screencast.com/t/FpYogPj5XfH4 Ideally, this Role would only see the Gift Card Dashboard, and the Create Card button. Also, I noticed that the Role of Orders is not letting the Use click on the Post to see the details even though I have all 4 Capabilities on for that Role CPT and also all 12 for the main Posts. How do allow them to view/edit Gift Card Posts, and create New Ones (the Role is working for that right now)? edering ParticipantHi. I just sent you an admin password for doublec.us Thanks. edering ParticipantI am using Admin Menu but using Block Selected. https://www.screencast.com/t/AzDL732iZNnL When logged in as this Role, I do see the YITH menu, and the Gift Cards choice. It just redirects me to main Dashboard. Also, I do have manage_options enabled. edering ParticipantThanks, that worked! 31/03/2020 at 15:17 in reply to: Access to all Posts of a specific Custom Post Type and limit other Pages by ID #6736edering ParticipantThanks! 31/03/2020 at 14:46 in reply to: Access to all Posts of a specific Custom Post Type and limit other Pages by ID #6733edering ParticipantAlso, we already have this filter being used once for a different role/custom post type. How do we add it again, but make sure they run independently? See below. // URE to allow Scholarship Role access to Scholarship plugin while restricting Pages for user add_filter('ure_restrict_edit_post_type', 'exclude_posts_from_edit_restrictions', 10, 1); function exclude_posts_from_edit_restrictions($post_type) { $restrict_it = $post_type; $user = wp_get_current_user(); if ( empty( $user) || !is_array( $user->roles ) ) { return $restrict_it; } if ( in_array( 'scholarships', $user->roles ) ) { // Role ID if ($post_type=='scholarship') { // CPT ID $restrict_it = false; } } return $restrict_it; } // end URE to allow Scholarship Role access31/03/2020 at 14:35 in reply to: Access to all Posts of a specific Custom Post Type and limit other Pages by ID #6732edering ParticipantThanks! For the 2nd part, our SDoL Page Editor role ID is called sdol-page-editor. Would I use that for the Role, AND set the post_type to “post”? Or, is the idea to list the Role ID for Applications & Tools (applications_tools)? And do I list the post_type for the Applications & Tools custom post type? 31/03/2020 at 11:00 in reply to: Access to all Posts of a specific Custom Post Type and limit other Pages by ID #6730edering ParticipantThe user does not see any Pages menu item at all. I cloned Production to Staging and then disabled all plugins except URE. When testing a user as described above, now I don’t see any menu items except for Profile (not even the Applications & Tools, which I saw before). What would cause that? I had already given you access to this site before. You can access it at https://staging-sdlancaster.kinsta.cloud/ with userroleeditor (you can reset your password). I have enabled all Plugins again (except for 4 that are also deactivated on Production). I also removed the Post ID from the restrictions of the User called “icomm” (my test user). This is the user that should use the Applications & Tools Role (full access to that Custom Post Type) plus SDoL Page Editor role access for the post ID=28499. If you could look at that and test with icomm, I would appreciate it. 30/03/2020 at 15:18 in reply to: Access to all Posts of a specific Custom Post Type and limit other Pages by ID #6726edering ParticipantFor your first step, disabling the restrictions add-on does show all Posts in my specific Custom Post Type for that Role. But no pages show for the SDoL Page Editor Role at all. What would cause that? I don’t think Pages is being blocked in the Admin Menu (if you look at my links in my first post). edering ParticipantThank you! This is working great now! 
- 
		AuthorPosts
