joli_toc_settings_capability

Since v2.1.2

Allows custom capabillity for accessing the Joli TOC’s Settings menu.

Check this page for the list of all available capabilities.

add_filter('joli_toc_settings_capability', function(){
    //Allow users who have the 'edit_pages' capability (such as 'Editors') to access Joli TOC's settings
    return 'edit_pages';
}, 10);
Was this page helpful?