helpful_feedback_capability

With this filter you can set the capability for the feedback menu of Helpful. This is useful if you want to make the menu available only to certain user roles. By default, only people who have the publish_posts capability are allowed to see the menu. These are usually editors and administrators.

/**
 * @param string $capability
 * @return string
 */
add_filter('helpful_feedback_capability', function (string $capability) {
    $capability = 'manage_options'; // only for admins
    return $capability;
});

Was this post helpful?

Top