Roles Capabilities and Custom Contact Forms
-
Hi,
thanks for your plugin again.
I would like to know the best way for hiding the custom contact forms stuff in wp-admin for all users except super-admin/admin.
Currently I figured out a way:
Adding the next capabilities to the register_post_type args in ccf_form creation (class-ccf-form.php):
‘capabilities’ => array( ‘read_post’ => ‘manage_options’, ‘edit_post’ => ‘manage_options’, ‘delete_post’ => ‘manage_options’, ‘edit_posts’ => ‘manage_options’, ‘edit_others_posts’ => ‘manage_options’, ‘publish_posts’ => ‘manage_options’, ‘create_posts’ => ‘manage_options’ )But using the above solution does not hide the item in the left admin menu. So the user realize pretty quickly that something is being hidden. I would like to know if you can share a better way to achieve this.
Best and thanks!!
- The topic ‘Roles Capabilities and Custom Contact Forms’ is closed to new replies.