abhilaksh235
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Help] Roles & CapabilitiesHey,
From what I can tell after poring through the code, there are two filters that can allow you to do this quite simply:
These arecws_wp_help_edit_documents_cap
(which controls the creation and management access)
andcws_wp_help_view_documents_cap
(which controls the viewing/reading access.So, you could, for example, use the following in your functions file or a snippet plugin to allow users who can view Gravity Forms entries to get view access to the Help documents:
// Change which capability is required for viewing posts in WP Help function alp_wp_help_change_cap( $publish_posts ) { return 'gravityforms_view_entries'; //this is gravity forms' inbuilt capability for viewing entries } add_filter( 'cws_wp_help_view_documents_cap', 'alp_wp_help_change_cap', 10, 1 );
Hope this helps! It’s an awesome plugin.
Hey,
That sounds good. Just to reiterate, the author user role has access to connecting their social media account and if they would be able to see/manage only their own social media accounts (connect, reconnect) or everyone’s?
If the above is not built in, if you use different capabilities in the code to control this, can we achieve this through adding capabilities to certain user roles?
Also, are there any limits to the number of accounts that can be connected per social media channel? We have 50 authors for example. Can all of them connect their LinkedIn profile?
Hey Kuba,
Any idea where this feature is in the pipeline and when it might be released?
It’s the one thing holding us back from getting the plugin!