Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Yes, I did. Still get an error saying "critical error" I have it working, but not for each seperate post-type. For now i could live with that. Hopefully there will be a full solution somehow. Thnx
Hi, Tried that, but it didn't work. I made a small alteration and changed "edit-user" for "administrator" That made it work to hide menu-links from my wsm user and keep all capabilities for administrator. It just does not apply to a specific post type, but for all the post types. add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 ); function remove_row_actions( $actions ){ if( current_user_can( 'administrator' ) ): return $actions; endif; if( get_post_type() === 'wiki-testimonials' ){ unset( $actions['view'] ); return $actions; }}