Incorrect array index in role added by plugin
-
Hello
When I try to access index zero of user role array, it doesn’t find because the role added by plugin is placed at index 4.
$current_user->roles = Array( [4] => ‘product_manager’ )
Many plugins, like Google Tag Manager, usually access the user’s role at index zero, generating incompatibility.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Incorrect array index in role added by plugin’ is closed to new replies.