Feature request: disable wordpress application passwords for certain roles?
-
Hi,
It would be great if I can set the user roles that are allowed to use the applicfation password feature of wordpress, within Wordfence. I have found an older topic about this: https://www.ads-software.com/support/topic/enable-wordpress-application-passwords-only-for-one-user/
It was replied that it might be a future feature. I hope i will get implemented some day.
I tried this code, but it is not working for mefunction my_prefix_customize_app_password_availability(
$available,
$user
) {
if ( ! user_can( $user, 'manage_options' ) ) {
$available = false;
}
return $available;
}
add_filter(
'wp_is_application_passwords_available_for_user',
'my_prefix_customize_app_password_availability',
10,
2
);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.