ss_user_capability

How to use: add_filter()

Included in: Simply Static Core/Free 3.2.0+

Overview

The ss_user_capability filter allows you to adjust the user role level required to access the Simply Static WordPress dashboard interface and features. The default user role required by Simply Static is admin. This filter can be useful for situations where you would like to allow a different user role or custom user role to access and control the settings in Simply Static.

Example

The following code snippet allows a user with a role of editor to perform updates in Simply Static via the user interface. By default this functionality is restricted to users with a role of admin or higher:

add_filter( 'ss_user_capability', function ( $capability ) {
	return 'edit_posts';
} );