aam_ui_policy_wildcards_available_filter
Purpose
Enable policy wildcard controls in the UI.
Callback
- Type: Filter.
- Arguments:
$value. - Return: the filtered first argument.
Example
add_filter('aam_ui_policy_wildcards_available_filter', function ($value) {
return current_user_can('manage_options') ? $value : false;
}, 10, 1);
Hides policy wildcard controls from users without site management permission.
See the complete hook list.