wpmem_adv_dashboard_capability

Description

Filters the required capability for allowing dashboard access.  With default WP roles, it will be removed for “subscriber” role but allowed for all others.

Parameters

$capability
(string) (required) The capability required for allowing dashboard access (default: edit_posts).

Usage

[snippet slug=wpmem_adv_dashboard_capability lang=php]

Changelog

Introduced in version 1.2

Source

wpmem_adv_dashboard_capability is located in includes/class-wp-members-advanced-options.php

Leave a Reply