800,000+ WordPress sites are already using MetaSlider!

MetaSlider Documentation

Let’s Connect

Description

Use this filter to modify the user capability required to use MetaSlider. The default capability is ‘edit_others_posts’.

Parameters

$capability

(string) (required) User role capability

Examples

Change the capability required to use MetaSlider

You can change the required capability to any default capability included in WordPress.

In the example below we’ve used the User Role Editor plugin to create a custom capability (called ‘metaslider_use’).

/**
 * You can change this to a different capability by pasting the code below into
 * your themes functions.php file.
 *
 * You can use the 'User Role Editor' plugin to add a custom capability to WordPress
 * specifically for MetaSlider users.
 */
function metaslider_change_required_role($capability) {
    return 'metaslider_use'; // this is the ID of a custom capability added using User Role Editor
}
add_filter('metaslider_capability', 'metaslider_change_required_role');
Still stuck? How can we help?
Last Updated on January 01, 1970

Start Using Your Slider Today!

Create and Publish Forms in Minutes… What are you waiting for?