aam_react_role_parent_supported_filter
Purpose
Enable or disable role-parent controls in the UI.
Callback
- Type: Filter.
- Arguments:
$supported. - Return: the filtered first argument.
Example
add_filter('aam_react_role_parent_supported_filter', function ($supported) {
return current_user_can('manage_options') ? $supported : false;
}, 10, 1);
Hides role-parent controls from users who cannot manage options.
See the complete hook list.