apply_filters( 'relevanssi_sidebar_capability', string $capability )
This filter controls the capability required to access the Relevanssi sidebar.
Parameters
$capability
(string) The capability required to access the Relevanssi sidebar. Default edit_others_posts
.
More information
Relevanssi Premium has a Gutenberg sidebar and a classic editor metabox, which provide information about the post and controls to adjust features like pinning and related posts. The sidebar and the metabox appear on post types that you’ve set Relevanssi to index. The post type also needs to have support for custom-fields
.
The sidebar and the metabox also require sufficient access. The default capability requirement is edit_others_posts
, which corresponds to the Editor role. If you wish to allow Authors access to the Relevanssi sidebar and metabox, you can set the minimum capability to publish_posts
:
add_filter( 'relevanssi_sidebar_capability', function() { return 'publish_posts'; } );
When you add this function to your site, Authors will get access to the Relevanssi sidebar and metabox.