Hi.
Can someone explain to me what the different parts of the capability / role means? I'm guessing that S:10 means level 10 of that specific role? But what is a:1 and b:1 ?
And can I add additional roles here? If yes, where?
Hi.
Can someone explain to me what the different parts of the capability / role means? I'm guessing that S:10 means level 10 of that specific role? But what is a:1 and b:1 ?
And can I add additional roles here? If yes, where?
I'm guessing that S:10 means level 10 of that specific role?
Nope. What you are looking at is a serialized string, which is a text representation of a value, usually an array or an object. The number is a kind of data validation. Its a count of the number of characters in the part of the value it refers to-- in this case 'subscriber'. See? Ten letters in 'subscriber'. Unserialized it "looks" like this:
array (
'subscriber' => true,
)
All it means it that this user has the 'subscriber' role.
Lets see if I can get this right. :)
a = array
1 = with one element in the array
{ = start the bit referred to by a:1:
array key is a...
s = string
10 = of ten characters
subscriber = the 'name' of the key is 'subscriber'
array value is a...
b = boolean
1 = value set to true
} = end the array referred to by a:1:
This topic has been closed to new replies.